
:root {
    --black: #050505;
    --white: #ffffff;
    --gray: #a3a3a3;
    --light: #f2f2f2;
    --border: rgba(0,0,0,.14);
    --dark-border: rgba(255,255,255,.15);

    --container: 1380px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
}

/* =========================
   GLOBAL
========================= */

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

.mono {
    font-family: "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section {
    padding: 140px 0;
}

.section-label {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 35px;
}

.section-title {
    font-size: clamp(48px, 7vw, 105px);
    line-height: .94;
    letter-spacing: -.06em;
    max-width: 1050px;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    mix-blend-mode: difference;
    color: white;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.logo span {
    display: block;
    font-family: "DM Mono", monospace;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: .18em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 13px;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width .3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-button {
    border: 1px solid white;
    padding: 11px 18px;
    border-radius: 100px;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 24px;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 80px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    font-size: 11px;
    color: #aaa;
}

.hero-label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
    display: block;
}

.hero h1 {
    font-size: clamp(65px, 11vw, 175px);
    line-height: .82;
    letter-spacing: -.075em;
    max-width: 1250px;
    font-weight: 800;
}

.hero h1 .outline {
    color: transparent;
    -webkit-text-stroke: 1px white;
}

.hero-bottom {
    margin-top: 70px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
}

.hero-description {
    max-width: 490px;
    color: #aaa;
    font-size: 17px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    background: white;
    color: black;
    padding: 17px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

.hero-cta:hover {
    transform: translateY(-4px);
    padding-right: 32px;
}

.hero-cta span {
    font-size: 20px;
}

/* =========================
   MARQUEE
========================= */

.marquee {
    overflow: hidden;
    background: white;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 22px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    font-size: 13px;
    font-family: "DM Mono", monospace;
    text-transform: uppercase;
    margin-right: 70px;
}

.marquee-item::after {
    content: "✦";
    margin-left: 70px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================
   INTRO
========================= */

.intro {
    padding: 180px 0;
}

.intro-text {
    font-size: clamp(40px, 6vw, 90px);
    line-height: 1.02;
    letter-spacing: -.055em;
    max-width: 1200px;
}

.intro-text span {
    color: #aaa;
}

/* =========================
   SERVICES
========================= */

.services {
    background: var(--light);
}

.services-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 90px;
}

.services-heading p {
    max-width: 350px;
    line-height: 1.7;
    color: #555;
}

.service-list {
    border-top: 1px solid var(--border);
}

.service {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    gap: 30px;
    padding: 38px 0;
    border-bottom: 1px solid var(--border);
    transition: .4s;
}

.service:hover {
    padding-left: 20px;
    padding-right: 20px;
    background: white;
}

.service-number {
    font-family: "DM Mono", monospace;
    font-size: 12px;
}

.service h3 {
    font-size: clamp(28px, 4vw, 55px);
    letter-spacing: -.04em;
}

.service p {
    color: #666;
    max-width: 500px;
    margin-top: 10px;
    line-height: 1.6;
}

.service-arrow {
    font-size: 35px;
    text-align: right;
    transition: transform .3s;
}

.service:hover .service-arrow {
    transform: rotate(45deg);
}

/* =========================
   WORK
========================= */

.work-heading {
    margin-bottom: 80px;
}

.project {
    margin-bottom: 110px;
}

.project-image {
    height: 650px;
    background: #111;
    overflow: hidden;
    position: relative;
}

.project-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, #555 0, transparent 30%),
        linear-gradient(135deg, #111, #333);
    transition: transform .7s;
}

.project:hover .project-image::before {
    transform: scale(1.08);
}

.project:nth-child(2) .project-image::before {
    background:
        linear-gradient(120deg, #050505 30%, #777 100%);
}

.project:nth-child(3) .project-image::before {
    background:
        radial-gradient(circle at 30% 70%, #777, transparent 25%),
        #171717;
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-mockup {
    width: 70%;
    height: 65%;
    background: white;
    box-shadow: 0 40px 100px rgba(0,0,0,.45);
    padding: 25px;
    transform: rotate(-3deg);
    transition: transform .6s;
}

.project:hover .project-mockup {
    transform: rotate(0) scale(1.04);
}

.mockup-bar {
    width: 100%;
    height: 8px;
    background: #111;
    margin-bottom: 30px;
}

.mockup-lines {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-lines span {
    display: block;
    height: 14px;
    background: #ddd;
}

.mockup-lines span:first-child {
    width: 70%;
    height: 70px;
    background: #111;
}

.mockup-lines span:nth-child(2) {
    width: 45%;
}

.project-info {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.project-info h3 {
    font-size: 32px;
    letter-spacing: -.04em;
}

.project-info p {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    color: #777;
}

/* =========================
   ABOUT / DARK
========================= */

.about {
    background: var(--black);
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-title {
    font-size: clamp(50px, 7vw, 100px);
    line-height: .9;
    letter-spacing: -.065em;
}

.about-title span {
    color: #666;
}

.about-text {
    color: #aaa;
    line-height: 1.8;
    font-size: 17px;
}

.about-text p {
    margin-bottom: 30px;
}

.about-link {
    display: inline-block;
    color: white;
    border-bottom: 1px solid white;
    padding-bottom: 7px;
}

/* =========================
   TECHNOLOGY
========================= */

.tech {
    border-bottom: 1px solid var(--border);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 80px;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.tech-item {
    padding: 40px 30px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 22px;
    font-weight: 700;
    transition: .3s;
}

.tech-item span {
    display: block;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    color: #888;
    margin-bottom: 25px;
}

.tech-item:hover {
    background: black;
    color: white;
}

/* =========================
   PROCESS
========================= */

.process {
    background: var(--light);
}

.process-list {
    margin-top: 90px;
}

.process-item {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 30px;
    padding: 35px 0;
    border-bottom: 1px solid var(--border);
}

.process-item .num {
    font-family: "DM Mono", monospace;
    font-size: 12px;
}

.process-item h3 {
    font-size: 38px;
    letter-spacing: -.04em;
}

.process-item p {
    color: #666;
    line-height: 1.7;
}

/* =========================
   SECURITY
========================= */

.security {
    background: black;
    color: white;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.security-content {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 100px;
    align-items: end;
}

.security h2 {
    font-size: clamp(55px, 8vw, 120px);
    line-height: .88;
    letter-spacing: -.07em;
}

.security h2 span {
    color: #555;
}

.security-info {
    color: #aaa;
    line-height: 1.8;
}

.security-list {
    margin-top: 35px;
    list-style: none;
}

.security-list li {
    border-top: 1px solid #333;
    padding: 14px 0;
    color: white;
    font-family: "DM Mono", monospace;
    font-size: 11px;
}

/* =========================
   TESTIMONIAL
========================= */

.testimonial {
    padding: 180px 0;
}

.quote {
    font-size: clamp(40px, 6vw, 82px);
    line-height: 1;
    letter-spacing: -.055em;
    max-width: 1150px;
}

.quote-mark {
    font-size: 100px;
    line-height: .5;
}

.quote-author {
    margin-top: 60px;
    font-family: "DM Mono", monospace;
    font-size: 11px;
}

/* =========================
   CTA
========================= */

.cta {
    background: var(--light);
    padding: 150px 0;
}

.cta h2 {
    font-size: clamp(65px, 11vw, 165px);
    line-height: .82;
    letter-spacing: -.075em;
}

.cta h2 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px black;
}

.cta-bottom {
    margin-top: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-button {
    background: black;
    color: white;
    padding: 20px 30px;
    border-radius: 100px;
    display: inline-flex;
    gap: 30px;
    align-items: center;
    font-weight: 700;
    transition: .3s;
}

.cta-button:hover {
    transform: translateY(-5px);
}

/* =========================
   FOOTER
========================= */

footer {
    background: black;
    color: white;
    padding: 80px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-logo {
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -.05em;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column span {
    font-family: "DM Mono", monospace;
    color: #666;
    font-size: 9px;
    margin-bottom: 10px;
}

.footer-column a {
    color: #bbb;
    font-size: 13px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 100px;
    border-top: 1px solid #222;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-family: "DM Mono", monospace;
    font-size: 9px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 900px) {

    .container {
        width: min(100% - 40px, var(--container));
    }

    .section {
        padding: 90px 0;
    }

    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero h1 {
        font-size: clamp(60px, 17vw, 110px);
    }

    .hero-bottom {
        flex-direction: column;
        align-items: start;
    }

    .intro {
        padding: 110px 0;
    }

    .services-heading {
        display: block;
    }

    .services-heading p {
        margin-top: 30px;
    }

    .service {
        grid-template-columns: 40px 1fr 40px;
    }

    .service p {
        font-size: 13px;
    }

    .project-image {
        height: 450px;
    }

    .project-mockup {
        width: 80%;
        height: 60%;
    }

    .about-grid,
    .security-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .process-item {
        grid-template-columns: 60px 1fr;
    }

    .process-item p {
        grid-column: 2;
    }

    .cta-bottom {
        flex-direction: column;
        align-items: start;
        gap: 40px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }
}

@media(max-width: 500px) {

    .container {
        width: calc(100% - 30px);
    }

    .hero {
        min-height: 850px;
    }

    .hero h1 {
        font-size: 64px;
    }

    .hero-description {
        font-size: 15px;
    }

    .service {
        grid-template-columns: 30px 1fr 25px;
        gap: 12px;
    }

    .service h3 {
        font-size: 26px;
    }

    .service-arrow {
        font-size: 25px;
    }

    .project-image {
        height: 300px;
    }

    .project-info {
        display: block;
    }

    .project-info p {
        margin-top: 10px;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-item {
        padding: 25px 15px;
        font-size: 16px;
    }

    .process-item h3 {
        font-size: 28px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================
   THREAD MUSE EXPERIENCE IMAGES
========================= */
.experience-image{position:relative;background:#111;overflow:hidden}
.experience-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s,filter .7s}
.project:hover .experience-image img{transform:scale(1.04);filter:contrast(1.05)}
.experience-tag{position:absolute;left:24px;bottom:24px;padding:9px 12px;background:rgba(0,0,0,.72);color:#fff;border:1px solid rgba(255,255,255,.2);font:10px "DM Mono",monospace;letter-spacing:.1em}

/* =========================
   BLOG PAGE — SCOPED CONTENT STYLES
   The homepage navbar/footer remain untouched.
========================= */
.blog-page {
    --blog-bg: #080808;
    --blog-panel: #111111;
    --blog-text: #f5f5f5;
    --blog-muted: #a6a6a6;
    --blog-line: #292929;
    --blog-accent: #b9ff35;
    background: var(--blog-bg);
    color: var(--blog-text);
}

/* Keep the exact homepage navigation geometry and typography. */
.blog-page .navbar { color: white; }
.blog-page .logo { font-family: "Manrope", sans-serif; }
.blog-page .nav-links { font-family: "Manrope", sans-serif; }
.blog-page .nav-links a.active { color: white; }

.blog-page .blog-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--blog-bg);
    border-bottom: 1px solid var(--blog-line);
}

.blog-page .blog-hero .hero-grid {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.blog-page .blog-hero .hero-grid::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    right: -180px;
    top: -220px;
    background: radial-gradient(circle, rgba(185,255,53,.14), transparent 62%);
}

.blog-page .hero-inner {
    position: relative;
    padding: 100px 0 120px;
}

.blog-page .eyebrow {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-page .eyebrow span {
    width: 26px;
    height: 1px;
    background: var(--blog-accent);
    display: inline-block;
}

.blog-page .blog-hero h1,
.blog-page .insights-section h2,
.blog-page .blog-card h3,
.blog-page .cta-band h2 {
    font-family: "Manrope", sans-serif;
    line-height: 1.04;
    letter-spacing: -.05em;
}

.blog-page .blog-hero h1 {
    font-size: clamp(54px, 8vw, 112px);
    font-weight: 700;
    max-width: 1000px;
    margin: 28px 0;
}

.blog-page .blog-hero h1 em,
.blog-page .insights-section h2 em,
.blog-page .cta-band h2 em {
    font-style: normal;
    color: #a7a7a7;
}

.blog-page .hero-copy {
    max-width: 680px;
    color: #aaa;
    font-size: 17px;
}

.blog-page .scroll-link {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    margin-top: 44px;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.blog-page .insights-section { padding: 130px 0; }

.blog-page .section-heading {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 80px;
}

.blog-page .insights-section h2 {
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 700;
    margin-top: 24px;
}

.blog-page .section-intro { color: #999; max-width: 520px; font-size: 15px; }
.blog-page .blog-list { display: grid; gap: 90px; }

.blog-page .blog-card {
    display: grid;
    grid-template-columns: 48% 52%;
    background: #101010;
    border: 1px solid #242424;
    min-height: 540px;
}

.blog-page .blog-card.reverse { grid-template-columns: 52% 48%; }
.blog-page .blog-card.reverse .card-media { order: 2; }
.blog-page .blog-card.reverse .card-content { order: 1; }

.blog-page .card-media { position: relative; min-height: 480px; overflow: hidden; }
.blog-page .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform .7s, filter .7s;
}
.blog-page .blog-card:hover .card-media img { transform: scale(1.045); filter: grayscale(15%); }
.blog-page .card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5));
}

.blog-page .number {
    position: absolute;
    z-index: 2;
    left: 24px;
    top: 22px;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,.35);
    padding: 8px 10px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
}

.blog-page .card-content {
    padding: 58px 58px 54px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-page .category {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: var(--blog-accent);
    letter-spacing: .15em;
    font-weight: 500;
}

.blog-page .blog-card h3 {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 700;
    margin: 20px 0 22px;
}

.blog-page .excerpt,
.blog-page .full-text p { color: #999; font-size: 14px; line-height: 1.85; }
.blog-page .full-text { margin-top: 20px; display: grid; gap: 14px; }

.blog-page .read-more {
    margin-top: 30px;
    border: 0;
    border-bottom: 1px solid #555;
    background: none;
    color: #fff;
    padding: 0 0 8px;
    font: 500 11px "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer;
}
.blog-page .read-more:hover { border-color: var(--blog-accent); color: var(--blog-accent); }
.blog-page .read-more span { margin-left: 10px; color: var(--blog-accent); }

.blog-page .cta-band { background: var(--blog-accent); color: #080808; padding: 92px 0; }
.blog-page .cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.blog-page .cta-band .eyebrow { color: #222; }
.blog-page .cta-band .eyebrow span { background: #080808; }
.blog-page .cta-band h2 { font-size: clamp(42px, 5vw, 70px); font-weight: 700; }
.blog-page .cta-band h2 em { color: #454545; }
.blog-page .button { display: inline-flex; align-items: center; gap: 12px; border: 1px solid; padding: 14px 20px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.blog-page .button-light { background: #080808; color: #fff; border-color: #080808; }
.blog-page .button-light:hover { background: #fff; color: #080808; }

@media (max-width: 900px) {
    .blog-page .nav-links.open {
        display: flex;
        position: absolute;
        top: 70px;
        right: 20px;
        flex-direction: column;
        align-items: flex-end;
        padding: 25px;
        background: #050505;
        gap: 20px;
        border: 1px solid rgba(255,255,255,.15);
    }
    .blog-page .blog-card,
    .blog-page .blog-card.reverse { grid-template-columns: 1fr; }
    .blog-page .blog-card.reverse .card-media,
    .blog-page .blog-card.reverse .card-content { order: initial; }
    .blog-page .card-media { min-height: 360px; }
    .blog-page .section-heading,
    .blog-page .cta-inner { display: block; }
    .blog-page .section-intro { margin-top: 30px; }
}

@media (max-width: 500px) {
    .blog-page .blog-hero { min-height: 570px; }
    .blog-page .hero-inner { padding: 80px 0; }
    .blog-page .insights-section { padding: 90px 0; }
    .blog-page .blog-list { gap: 50px; }
    .blog-page .card-content { padding: 38px 26px; }
    .blog-page .card-media { min-height: 270px; }
}


/* =========================
   PERFORMANCE / ACCESSIBILITY
========================= */

img {
    max-width: 100%;
}

.service h3 a {
    text-decoration: none;
}

.service h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.footer-note {
    color: #777;
    font-size: 13px;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

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

/* =========================
   MOBILE NAVIGATION
========================= */

@media (max-width: 900px) {
    .navbar .nav-links.open {
        display: flex;
        position: absolute;
        top: 72px;
        right: 20px;
        width: min(280px, calc(100vw - 40px));
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px;
        background: rgba(5,5,5,.98);
        border: 1px solid rgba(255,255,255,.15);
        box-shadow: 0 20px 50px rgba(0,0,0,.35);
    }

    .navbar .nav-links.open a {
        padding: 5px 0;
    }

    .navbar .nav-links.open .nav-button {
        text-align: center;
        padding: 12px 16px;
    }
}

/* =========================
   SERVICE LANDING PAGES
========================= */

.service-page {
    background: #fff;
    color: #050505;
}

.service-hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #050505;
    color: #fff;
}

.service-hero .hero-grid {
    opacity: .16;
}

.service-hero-inner {
    position: relative;
    z-index: 2;
    padding: 130px 0 110px;
}

.service-page .eyebrow {
    font: 11px "DM Mono", monospace;
    letter-spacing: .18em;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.service-page .eyebrow span {
    width: 26px;
    height: 1px;
    background: #fff;
    display: inline-block;
}

.breadcrumbs {
    margin-top: 30px;
    color: #777;
    font: 11px "DM Mono", monospace;
    letter-spacing: .06em;
}

.breadcrumbs a:hover { color: #fff; }

.service-hero h1 {
    max-width: 1100px;
    margin: 30px 0;
    font-size: clamp(58px, 9vw, 135px);
    line-height: .88;
    letter-spacing: -.07em;
}

.service-lead {
    max-width: 760px;
    color: #aaa;
    font-size: 18px;
    line-height: 1.75;
}

.service-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.service-text-link {
    color: #aaa;
    font: 11px "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.service-text-link:hover { color: #fff; }

.service-heading {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    align-items: end;
}

.service-heading > p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.service-capabilities {
    margin-top: 90px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service-capabilities article {
    padding: 36px 30px 42px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service-capabilities article span {
    display: block;
    font: 10px "DM Mono", monospace;
    color: #888;
    margin-bottom: 35px;
}

.service-capabilities h3 {
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -.035em;
    margin-bottom: 18px;
}

.service-capabilities p {
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.service-dark {
    background: #050505;
    color: #fff;
    padding: 150px 0;
}

.service-dark-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 100px;
    align-items: end;
}

.service-dark h2 {
    font-size: clamp(55px, 8vw, 115px);
    line-height: .88;
    letter-spacing: -.07em;
}

.service-dark h2 span { color: #555; }

.service-dark-grid > div:last-child p {
    color: #aaa;
    line-height: 1.85;
    font-size: 16px;
    margin-bottom: 35px;
}

.service-dark .section-label { color: #777; }
.service-dark .about-link { color: #fff; }

.service-faq { background: #f2f2f2; }

.faq-list {
    margin-top: 80px;
    border-top: 1px solid var(--border);
}

.faq-list details {
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
}

.faq-list summary {
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.faq-list p {
    max-width: 800px;
    margin-top: 18px;
    color: #666;
    line-height: 1.8;
}

.service-cta { margin-top: 0; }

@media (max-width: 900px) {
    .service-hero { min-height: 650px; }
    .service-heading,
    .service-dark-grid { grid-template-columns: 1fr; gap: 45px; }
    .service-capabilities { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .service-hero-inner { padding: 110px 0 90px; }
    .service-hero h1 { font-size: 58px; }
    .service-lead { font-size: 15px; }
    .service-capabilities { grid-template-columns: 1fr; margin-top: 55px; }
    .service-dark { padding: 100px 0; }
    .faq-list { margin-top: 50px; }
    .faq-list summary { font-size: 17px; line-height: 1.4; }
}

.blog-page .article-service-link {
    margin-top: 18px;
    color: #aaa;
    font: 10px "DM Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-page .article-service-link:hover {
    color: var(--blog-accent);
}

/* Navigation reliability fixes */
.navbar .menu-button {
    position: relative;
    z-index: 1002;
    cursor: pointer;
}

@media (max-width: 900px) {
    .navbar .nav-links.open {
        display: flex !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        position: absolute;
        top: calc(100% + 4px);
        right: 20px;
        width: min(300px, calc(100vw - 40px));
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 24px;
        background: #050505;
        color: #fff;
        border: 1px solid rgba(255,255,255,.18);
        box-shadow: 0 20px 50px rgba(0,0,0,.4);
    }

    .navbar .nav-links.open a {
        color: #fff;
        display: block;
    }

    .navbar .nav-links.open .nav-button {
        color: #fff;
        text-align: center;
    }
}

/* The service title remains the primary semantic link; this class makes the target easier to identify. */
.service-card-link {
    text-decoration: none;
}
