.inner-hero,
.case-hero,
.article-hero,
.error-page {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-950);
}
.inner-hero::before,
.case-hero::before,
.article-hero::before,
.error-page::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(110deg, #000, transparent 75%);
}
.inner-hero > .shell,
.case-hero > .shell,
.article-hero > .shell,
.error-page > .shell { position: relative; z-index: 1; }
.inner-hero { padding: 142px 0 82px; }
.inner-hero h1,
.case-hero h1,
.article-hero h1,
.error-page h1 { color: var(--white); }
.inner-hero p,
.case-hero p,
.article-hero p,
.error-page p { color: #b8c9de; }
.breadcrumbs { margin-bottom: 42px; display: flex; align-items: center; gap: 7px; color: #8fa5bf; font-size: 12px; font-weight: 600; }
.breadcrumbs a:hover { color: #72e1f1; }
.breadcrumbs svg { width: 14px; }
.breadcrumbs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8e5f4; }

.inner-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: center; }
.inner-hero-grid h1 { margin-bottom: 20px; font-size: 56px; }
.inner-hero-grid > div:first-child > p:not(.eyebrow) { max-width: 620px; margin-bottom: 28px; font-size: 18px; }
.service-visual { position: relative; min-height: 330px; }
.service-visual::before,
.service-visual::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid rgba(95,207,233,.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.service-visual::before { width: 250px; height: 250px; }
.service-visual::after { width: 165px; height: 165px; }
.service-visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(111,224,240,.55);
    border-radius: 20px;
    color: var(--white);
    background: linear-gradient(145deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 20px 45px rgba(17,103,232,.34);
    transform: translate(-50%, -50%);
}
.service-visual-icon svg { width: 42px; height: 42px; }
.service-node {
    position: absolute;
    z-index: 2;
    width: 88px;
    min-height: 70px;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 1px solid rgba(141,181,226,.28);
    border-radius: 12px;
    color: #b9d7ee;
    background: rgba(11,37,72,.9);
    box-shadow: 0 14px 30px rgba(0,0,0,.2);
    font-size: 10px;
    font-weight: 700;
}
.service-node svg { color: #63d9e9; }
.node-one { top: 10px; left: 50%; transform: translateX(-50%); }
.node-two { left: 18px; top: 50%; transform: translateY(-50%); }
.node-three { right: 18px; top: 50%; transform: translateY(-50%); }
.node-four { bottom: 8px; left: 50%; transform: translateX(-50%); }

.detail-overview { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.detail-overview h2 { max-width: 470px; }
.rich-copy { color: var(--muted); }
.rich-copy .lead { color: var(--ink); font-size: 19px; font-weight: 600; }

.challenge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.challenge-grid .section-heading { margin-bottom: 0; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li {
    min-height: 62px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    font-weight: 600;
}
.check-list li > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--teal-500);
    background: #e7f8f6;
}
.check-list svg { width: 16px; }

.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.capability-card { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.capability-card > span { width: 46px; height: 46px; margin-bottom: 28px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-600); background: #eaf3ff; }
.capability-card h3 { margin-bottom: 9px; }
.capability-card p { margin: 0; color: var(--muted); font-size: 14px; }

.service-stack-section,
.case-visual-section { color: var(--white); background: var(--navy-950); }
.service-stack-section h2,
.case-visual-section h2 { color: var(--white); }
.service-stack-section p,
.case-visual-section p { color: #a9bcd3; }
.stack-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.stack-layout > div:first-child > p:last-child { max-width: 480px; }
.stack-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack-list span { min-height: 68px; display: grid; place-items: center; border: 1px solid #1e3a60; border-radius: 12px; color: #dce9f6; background: #0a1d39; font-weight: 700; }

.service-process { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; }
.service-process li { min-height: 220px; padding: 26px 22px; border-top: 3px solid var(--blue-600); background: var(--soft); }
.service-process li:nth-child(even) { border-color: var(--cyan-500); }
.service-process li > span { color: var(--blue-600); font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 800; }
.service-process h3 { margin: 38px 0 8px; }
.service-process p { margin: 0; color: var(--muted); font-size: 13px; }

.service-why { background: #f8fafc; border-top: 1px solid var(--line); }
.service-why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: start; }
.service-why-grid > div > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 17px; }
.why-points { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-points span { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.why-points svg { color: var(--blue-600); }
.service-navigation { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); }
.service-navigation h3 { margin-bottom: 16px; font-size: 16px; }
.service-navigation > a { padding: 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.service-navigation > a span { display: flex; align-items: center; gap: 9px; }
.service-navigation > a svg { width: 16px; }
.service-navigation > a:hover,
.service-navigation > a.active { color: var(--blue-700); background: #eaf3ff; }

.listing-hero { min-height: 520px; display: flex; align-items: center; }
.listing-hero-copy { max-width: 780px; }
.listing-hero-copy h1 { margin-bottom: 20px; font-size: 56px; }
.listing-hero-copy > p:last-child { max-width: 680px; font-size: 18px; }
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 18px;
}
.package-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.package-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--blue-700);
    background: #eaf3ff;
}
.package-card h3 { margin-bottom: 8px; }
.package-description { margin-bottom: 20px; color: var(--muted); }
.package-price { margin-top: auto; margin-bottom: 16px; color: var(--muted); }
.package-price strong { color: var(--ink); font-size: 1.25rem; }
.package-price span { white-space: nowrap; }
.package-download { color: var(--blue-700); border-color: var(--line); }
.package-download:hover { border-color: var(--blue-600); background: var(--soft); }
.package-download svg { width: 16px; height: 16px; flex: 0 0 auto; }

.filter-bar { margin-bottom: 42px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.filter-button { min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--white); cursor: pointer; font-weight: 700; }
.filter-button:hover { border-color: #9ec3ee; color: var(--blue-700); }
.filter-button.active { border-color: var(--blue-600); color: var(--white); background: var(--blue-600); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.portfolio-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portfolio-card[hidden] { display: none; }
.portfolio-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-900); }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.portfolio-card:hover img { transform: scale(1.03); }
.portfolio-image .project-category { position: absolute; left: 20px; bottom: 20px; padding: 7px 10px; border-radius: 7px; color: #7eeaff; background: rgba(4,17,39,.9); backdrop-filter: blur(8px); }
.portfolio-content { padding: 28px; }
.portfolio-content h2 { margin-bottom: 10px; font-size: 26px; }
.portfolio-content p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 5px 9px; border-radius: 6px; color: #4d627d; background: #eef3f8; font-size: 10px; font-weight: 700; }
.portfolio-content .tag-list { margin: 20px 0 24px; }
.portfolio-empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.portfolio-empty svg { width: 38px; height: 38px; color: var(--blue-600); }
.portfolio-empty h2 { margin: 14px 0 8px; font-size: 24px; }

.case-hero { padding: 142px 0 0; background: linear-gradient(180deg, var(--navy-950), #071b37); }
.case-hero-copy { max-width: 820px; }
.case-hero-copy h1 { margin-bottom: 18px; font-size: 58px; }
.case-hero-copy > p:not(.eyebrow) { max-width: 720px; font-size: 18px; }
.tag-list-dark { margin-top: 24px; }
.tag-list-dark span { color: #bcd4ea; background: rgba(255,255,255,.09); }
.case-cover { margin: 60px 0 -100px; overflow: hidden; aspect-ratio: 16 / 8; border: 1px solid #23466f; border-radius: 18px; background: #0b2344; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-hero + .section { padding-top: 200px; }
.case-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.case-summary > p:last-child { color: var(--muted); font-size: 17px; }
.project-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.project-facts div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts div:nth-child(2n) { border-right: 0; }
.project-facts div:nth-child(n+3) { border-bottom: 0; }
.project-facts dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.project-facts dd { margin: 6px 0 0; font-weight: 700; }
.case-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-story-grid article { position: relative; min-height: 390px; padding: 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.story-number { position: absolute; top: 10px; right: 22px; color: #eef4fa; font-family: "Manrope", sans-serif; font-size: 96px; font-weight: 800; line-height: 1; }
.case-story-grid article > *:not(.story-number) { position: relative; z-index: 1; }
.case-story-grid article > p:last-child { color: var(--muted); }
.case-visual-section .section-heading { max-width: 720px; }
.case-visual-frame { padding: 14px; border: 1px solid #1b3c66; border-radius: 18px; background: #0a1e3a; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.case-visual-frame img { width: 100%; border-radius: 10px; }
.outcomes-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.outcomes-list { display: grid; gap: 12px; }
.outcomes-list > div { padding: 20px; display: flex; gap: 15px; border: 1px solid var(--line); border-radius: 12px; }
.outcomes-list svg { flex: 0 0 auto; color: var(--blue-600); }
.outcomes-list span { color: var(--muted); font-size: 14px; }
.outcomes-list strong { display: block; margin-bottom: 3px; color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { padding: 12px 12px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.related-card img { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 18px; object-fit: cover; border-radius: 9px; }
.related-card > span { color: var(--blue-700); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.related-card h3 { margin: 6px 0; font-size: 17px; }
.related-card p { margin: 0; color: var(--muted); font-size: 12px; }

.featured-article { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; padding-bottom: 88px; border-bottom: 1px solid var(--line); }
.featured-article-image { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px; background: var(--navy-900); }
.featured-article-image img,
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.featured-article-image:hover img,
.article-image:hover img { transform: scale(1.03); }
.article-meta { display: flex; align-items: center; gap: 10px; color: #7c8ba0; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.article-meta span { color: var(--blue-700); }
.article-meta span::after { content: ""; width: 3px; height: 3px; margin-left: 10px; display: inline-block; border-radius: 50%; background: #a8b6c8; vertical-align: middle; }
.featured-article h2 { margin-bottom: 16px; font-size: 36px; }
.featured-article > div > p:not(.article-meta) { color: var(--muted); }
.articles-heading { margin: 72px 0 32px; }
.articles-heading h2 { font-size: 32px; }
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.article-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-900); }
.article-card-body { padding: 26px; }
.article-card h3 { margin: 12px 0; font-size: 22px; }
.article-card-body > p:not(.article-meta) { color: var(--muted); font-size: 14px; }
.article-card .text-link { margin-top: 20px; }

.article-hero { padding: 146px 0 150px; }
.article-hero-inner { max-width: 920px; }
.article-hero .breadcrumbs { margin-bottom: 48px; }
.article-hero h1 { margin-bottom: 22px; font-size: 56px; }
.article-deck { max-width: 800px; font-size: 18px; }
.article-byline { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 20px; color: #9fb2c9; font-size: 12px; font-weight: 600; }
.article-byline span,
.article-byline time { display: flex; align-items: center; gap: 7px; }
.article-byline svg { width: 16px; color: #5cd9ea; }
.article-cover { position: relative; z-index: 2; margin-top: -92px; overflow: hidden; aspect-ratio: 16 / 7; border: 8px solid var(--white); border-radius: 18px; background: var(--navy-900); box-shadow: var(--shadow-lg); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { padding: 90px 0 112px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 90px; align-items: start; }
.article-content { max-width: 760px; }
.article-lead { margin-bottom: 32px; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 600; line-height: 1.55; }
.article-prose { color: #42546d; font-size: 17px; line-height: 1.9; white-space: normal; }
.article-author { margin-top: 58px; padding: 28px; display: flex; gap: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.article-author > span { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--blue-600); background: #e0edff; }
.article-author small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.article-author h2 { margin: 2px 0 5px; font-size: 18px; }
.article-author p { margin: 0; color: var(--muted); font-size: 13px; }
.article-sidebar { position: sticky; top: 110px; display: grid; gap: 16px; }
.sidebar-panel,
.sidebar-cta { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.recent-article { position: relative; padding: 15px 24px 15px 0; display: block; border-top: 1px solid var(--line); }
.recent-article time { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.recent-article strong { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; }
.recent-article svg { position: absolute; right: 0; top: 50%; width: 15px; color: var(--blue-600); }
.sidebar-cta { color: var(--white); background: var(--navy-900); }
.sidebar-cta > svg { width: 28px; height: 28px; color: #66ddec; }
.sidebar-cta h2 { margin: 24px 0 8px; color: var(--white); font-size: 21px; }
.sidebar-cta p { color: #a7bbd3; font-size: 13px; }
.sidebar-cta .button { width: 100%; }

.contact-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.contact-hero h1 { margin-bottom: 20px; font-size: 58px; }
.contact-hero-grid > div:first-child > p:last-child { max-width: 680px; font-size: 18px; }
.contact-hero-note { padding: 26px; display: flex; gap: 16px; border: 1px solid rgba(130,187,232,.28); border-radius: 14px; background: rgba(10,35,68,.7); }
.contact-hero-note > svg { width: 28px; height: 28px; flex: 0 0 auto; color: #68deed; }
.contact-hero-note strong,
.contact-hero-note span { display: block; }
.contact-hero-note span { margin-top: 5px; color: #a9bed5; font-size: 13px; }
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.contact-blocks { display: grid; gap: 11px; }
.contact-block { padding: 18px; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.contact-block > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; color: var(--blue-600); background: #eaf3ff; }
.contact-block > svg { width: 17px; color: var(--blue-600); }
.contact-block small,
.contact-block strong,
.contact-block em { display: block; }
.contact-block small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.contact-block strong { margin: 2px 0; font-size: 14px; }
.contact-block em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.45; }
.whatsapp-link { margin-top: 16px; padding: 18px; display: flex; align-items: center; gap: 13px; border: 1px solid #b8e4df; border-radius: 13px; color: #147c76; background: #effaf8; }
.whatsapp-link > svg:last-child { margin-left: auto; }
.whatsapp-link span { display: flex; flex-direction: column; font-size: 12px; }
.contact-form-panel { padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-lg); }
.contact-form-panel > h2 { margin-bottom: 8px; font-size: 34px; }
.contact-form-panel > p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); }
.contact-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; color: #344760; font-size: 12px; font-weight: 700; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cad7e5;
    border-radius: 9px;
    outline: none;
    color: var(--ink);
    background: #f9fbfd;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(17,103,232,.11); background: var(--white); }
.form-submit { width: 100%; }
.form-feedback { margin-top: 16px; padding: 14px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.form-feedback.success { border: 1px solid #9ddbd4; color: #0d746d; background: #effaf8; }
.form-feedback.error { border: 1px solid #efb3b3; color: #a32525; background: #fff4f4; }
.map-section { padding: 90px 0; background: var(--soft); }
.map-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.map-layout > div:first-child > p:last-child { color: var(--muted); }
.map-frame { overflow: hidden; aspect-ratio: 16 / 8; border: 8px solid var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.contact-expectations { padding: 36px 0; border-top: 1px solid var(--line); }
.contact-expectations .shell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-expectations .shell > div { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 12px; }
.contact-expectations svg { flex: 0 0 auto; color: var(--blue-600); }
.contact-expectations strong { display: block; color: var(--ink); font-size: 13px; }

.error-page { min-height: 780px; display: grid; place-items: center; text-align: center; }
.error-page-inner { padding: 140px 0 110px; }
.error-code { color: rgba(255,255,255,.05); font-family: "Manrope", sans-serif; font-size: 230px; font-weight: 800; line-height: .7; }
.error-page .eyebrow { margin-top: -12px; justify-content: center; }
.error-page h1 { margin: 16px auto; max-width: 720px; font-size: 48px; }
.error-page p:not(.eyebrow) { max-width: 580px; margin-inline: auto; }
.error-page .hero-actions { margin-top: 28px; justify-content: center; }

.inner-cta + .site-footer { padding-top: 156px; }

@media (max-width: 1000px) {
    .inner-hero-grid,
    .contact-hero-grid { gap: 48px; }
    .inner-hero-grid h1,
    .listing-hero-copy h1,
    .case-hero-copy h1,
    .contact-hero h1,
    .article-hero h1 { font-size: 48px; }
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
    .service-process { grid-template-columns: repeat(3, 1fr); }
    .featured-article { gap: 38px; }
    .article-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 54px; }
    .contact-layout { gap: 42px; }
}

@media (max-width: 800px) {
    .inner-hero { padding-top: 120px; }
    .inner-hero-grid,
    .detail-overview,
    .challenge-grid,
    .stack-layout,
    .service-why-grid,
    .case-overview,
    .outcomes-layout,
    .featured-article,
    .article-grid,
    .contact-hero-grid,
    .contact-layout,
    .map-layout { grid-template-columns: 1fr; }
    .service-visual { min-height: 290px; max-width: 520px; width: 100%; margin-inline: auto; }
    .detail-overview,
    .challenge-grid,
    .stack-layout,
    .service-why-grid,
    .case-overview,
    .outcomes-layout { gap: 42px; }
    .portfolio-grid,
    .case-story-grid,
    .articles-grid { grid-template-columns: 1fr; }
    .case-cover { margin-bottom: -70px; }
    .case-hero + .section { padding-top: 160px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .article-sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .contact-hero-note { max-width: 560px; }
}

@media (max-width: 640px) {
    .inner-hero { padding: 112px 0 64px; }
    .breadcrumbs { margin-bottom: 32px; }
    .inner-hero-grid h1,
    .listing-hero-copy h1,
    .case-hero-copy h1,
    .contact-hero h1,
    .article-hero h1,
    .error-page h1 { font-size: 36px; }
    .inner-hero-grid > div:first-child > p:not(.eyebrow),
    .listing-hero-copy > p:last-child,
    .case-hero-copy > p:not(.eyebrow),
    .contact-hero-grid > div:first-child > p:last-child,
    .article-deck { font-size: 16px; }
    .service-visual { min-height: 260px; }
    .service-node { width: 74px; min-height: 62px; }
    .node-two { left: 0; }
    .node-three { right: 0; }
    .capability-grid,
    .stack-list,
    .service-process,
    .project-facts,
    .related-grid,
    .articles-grid,
    .article-sidebar,
    .form-grid,
    .contact-expectations .shell { grid-template-columns: 1fr; }
    .why-points { grid-template-columns: 1fr; }
    .service-process li { min-height: 176px; }
    .service-process h3 { margin-top: 24px; }
    .listing-hero { min-height: 480px; }
    .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 14px; }
    .filter-button { flex: 0 0 auto; }
    .portfolio-content { padding: 22px; }
    .portfolio-content h2 { font-size: 22px; }
    .case-hero { padding-top: 118px; }
    .case-cover { margin-top: 40px; margin-bottom: -44px; aspect-ratio: 4 / 3; }
    .case-hero + .section { padding-top: 116px; }
    .project-facts div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
    .project-facts div:last-child { border-bottom: 0 !important; }
    .case-story-grid article { min-height: 340px; padding: 28px; }
    .featured-article { padding-bottom: 60px; }
    .featured-article h2 { font-size: 29px; }
    .article-hero { padding: 118px 0 116px; }
    .article-cover { margin-top: -60px; aspect-ratio: 4 / 3; border-width: 5px; }
    .article-layout { padding: 62px 0 82px; }
    .article-lead { font-size: 19px; }
    .article-prose { font-size: 16px; }
    .article-author { padding: 22px; }
    .contact-form-panel { padding: 26px 20px; }
    .contact-form-panel > h2 { font-size: 28px; }
    .contact-block { grid-template-columns: 42px minmax(0,1fr) auto; padding: 14px; }
    .contact-block > span { width: 42px; height: 42px; }
    .contact-block strong,
    .contact-block em { overflow-wrap: anywhere; }
    .map-section { padding: 68px 0; }
    .map-frame { aspect-ratio: 4 / 3; border-width: 5px; }
    .error-page { min-height: 690px; }
    .error-code { font-size: 150px; }
}

@media (max-width: 380px) {
    .service-visual::before { width: 210px; height: 210px; }
    .service-visual::after { width: 140px; height: 140px; }
    .service-visual-icon { width: 78px; height: 78px; }
    .contact-block > svg:last-child { display: none; }
}
