:root {
    --color-ink: #0d1424;
    --color-ink-soft: #263247;
    --color-muted: #657186;
    --color-line: #dce3ec;
    --color-surface: #ffffff;
    --color-surface-soft: #f5f7fa;
    --color-blue: #2463eb;
    --color-blue-deep: #1748b8;
    --color-cyan: #0aa5a5;
    --color-green: #168b69;
    --color-dark: #10192c;
    --color-dark-soft: #17243d;
    --container: 1200px;
    --header-height: 82px;
    --radius: 8px;
    --shadow-soft: 0 24px 70px rgba(14, 28, 52, 0.1);
    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
    color: inherit;
    font-weight: 700;
    letter-spacing: 0;
}

p {
    color: var(--color-muted);
}

::selection {
    color: #ffffff;
    background: var(--color-blue);
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #ffffff;
    background: var(--color-ink);
    border-radius: 4px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--color-blue-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: currentColor;
}

.eyebrow--light {
    color: #8fd9db;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

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

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(36, 99, 235, 0.24);
    outline-offset: 3px;
}

.button--primary {
    color: #ffffff;
    background: var(--color-blue);
    box-shadow: 0 14px 32px rgba(36, 99, 235, 0.24);
}

.button--primary:hover {
    background: var(--color-blue-deep);
    box-shadow: 0 18px 38px rgba(36, 99, 235, 0.3);
}

.button--outline {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.8);
    border-color: #bcc8d8;
}

.button--outline:hover {
    background: #ffffff;
    border-color: var(--color-ink);
}

.button--dark {
    color: #ffffff;
    background: var(--color-ink);
}

.button--dark:hover {
    background: var(--color-blue);
}

.button--light {
    color: var(--color-ink);
    background: #ffffff;
}

.button--light:hover {
    color: #ffffff;
    background: var(--color-cyan);
}

.button--small {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 14px;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(184, 197, 214, 0.72);
    box-shadow: 0 12px 30px rgba(14, 28, 52, 0.07);
    backdrop-filter: blur(14px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.brand-mark {
    position: relative;
    width: 31px;
    height: 31px;
    display: inline-block;
    overflow: hidden;
    background: var(--color-ink);
    border-radius: 6px;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
    position: absolute;
    content: "";
    background: #ffffff;
}

.brand-mark::before {
    width: 5px;
    height: 18px;
    top: 6px;
    left: 7px;
}

.brand-mark::after {
    width: 13px;
    height: 5px;
    bottom: 7px;
    left: 7px;
}

.brand-mark span {
    width: 5px;
    height: 12px;
    right: 7px;
    bottom: 7px;
    background: #50d4d0;
}

.brand-name {
    color: var(--color-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.brand-name span {
    color: var(--color-blue);
}

.primary-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.primary-navigation a {
    position: relative;
    color: var(--color-ink-soft);
    font-size: 14px;
    font-weight: 650;
}

.primary-navigation a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--color-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.primary-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a2adbb;
    font-size: 12px;
    font-weight: 700;
}

.language-switcher a {
    color: #7a879a;
}

.language-switcher a[aria-current="page"] {
    color: var(--color-ink);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 19px;
    height: 2px;
    background: var(--color-ink);
    transition: transform var(--transition);
}

.menu-toggle span:first-child {
    transform: translateY(-4px);
}

.menu-toggle span:last-child {
    transform: translateY(4px);
}

.site-header.is-open .menu-toggle span:first-child {
    transform: rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 68px) 0 88px;
    background: #eef3f9;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        90deg,
        #f7f9fc 0%,
        rgba(247, 249, 252, 0.98) 36%,
        rgba(247, 249, 252, 0.78) 52%,
        rgba(247, 249, 252, 0.08) 78%,
        rgba(247, 249, 252, 0.08) 100%
    );
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-copy {
    width: min(650px, 62%);
}

.hero h1 {
    max-width: 640px;
    margin-bottom: 26px;
    font-size: 68px;
    line-height: 1.02;
}

.hero-lead {
    max-width: 610px;
    margin-bottom: 32px;
    color: #4d5b70;
    font-size: 20px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 0;
    color: #5d697c;
    font-size: 13px;
    font-weight: 650;
}

.hero-availability span {
    width: 9px;
    height: 9px;
    background: var(--color-green);
    border: 2px solid #ccecdf;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(22, 139, 105, 0.08);
}

.trust-strip {
    padding: 34px 0 38px;
    background: #ffffff;
    border-top: 1px solid #e3e8ef;
    border-bottom: 1px solid #e3e8ef;
}

.trust-label {
    margin-bottom: 22px;
    color: #8a95a5;
    font-size: 11px;
    font-weight: 750;
    text-align: center;
    text-transform: uppercase;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.trust-item {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 22px;
    border-left: 1px solid var(--color-line);
}

.trust-item:first-child {
    border-left: 0;
}

.trust-item strong {
    display: block;
    color: var(--color-ink);
    font-size: 20px;
    line-height: 1.25;
}

.trust-item span {
    display: block;
    margin-top: 5px;
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.4;
}

.section {
    padding: 116px 0;
}

.section--soft {
    background: var(--color-surface-soft);
}

.section--dark {
    color: #ffffff;
    background: var(--color-dark);
}

.display-heading,
.section-heading h2,
.problems-intro h2,
.industries-copy h2,
.contact-copy h2 {
    font-size: 48px;
    line-height: 1.14;
}

.positioning-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 90px;
    align-items: center;
}

.positioning-grid .display-heading {
    max-width: 760px;
    margin-bottom: 0;
}

.positioning-copy > p {
    margin-bottom: 32px;
    color: var(--color-ink-soft);
    font-size: 18px;
    line-height: 1.75;
}

.positioning-note {
    display: flex;
    gap: 18px;
    padding-top: 25px;
    border-top: 1px solid var(--color-line);
}

.positioning-note > span {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 7px;
    background: var(--color-cyan);
    border-radius: 2px;
    transform: rotate(45deg);
}

.positioning-note strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.positioning-note p {
    margin-bottom: 0;
    font-size: 14px;
}

.section-heading {
    margin-bottom: 54px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 80px;
    align-items: end;
}

.section-heading--split > p {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.7;
}

.section-heading--center {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading--center .eyebrow {
    justify-content: center;
}

.section-heading--center > p:last-child {
    max-width: 680px;
    margin: 22px auto 0;
    font-size: 17px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.service-card {
    min-height: 355px;
    display: flex;
    flex-direction: column;
    padding: 34px;
    background: #ffffff;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}

.service-card:hover {
    z-index: 1;
    background: #fbfdff;
    box-shadow: var(--shadow-soft);
    transform: translateY(-6px);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 54px;
}

.service-number {
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 800;
}

.service-tag {
    color: #7f8b9d;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    text-transform: uppercase;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.25;
}

.service-card p {
    margin-bottom: 28px;
    font-size: 15px;
}

.service-card a,
.project-content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--color-blue-deep);
    font-size: 14px;
    font-weight: 750;
}

.service-card a span,
.project-content a span {
    transition: transform var(--transition);
}

.service-card a:hover span,
.project-content a:hover span {
    transform: translateX(4px);
}

.problems-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
    gap: 95px;
    align-items: start;
}

.problems-intro {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.problems-intro h2 {
    margin-bottom: 24px;
}

.problems-intro > p:last-child {
    max-width: 520px;
    color: #aab6c8;
    font-size: 17px;
}

.problem-list {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.problem-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.problem-item > span {
    color: #68cfd0;
    font-size: 12px;
    font-weight: 800;
}

.problem-item h3 {
    margin-bottom: 7px;
    font-size: 21px;
}

.problem-item p {
    margin-bottom: 0;
    color: #9faabd;
    font-size: 15px;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 42px;
}

.solution-item {
    padding: 30px 0 22px;
    border-top: 1px solid var(--color-line);
}

.solution-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--color-blue-deep);
    background: #eaf0ff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.solution-item:nth-child(2) .solution-icon,
.solution-item:nth-child(5) .solution-icon {
    color: #087b7c;
    background: #e5f6f4;
}

.solution-item:nth-child(3) .solution-icon,
.solution-item:nth-child(6) .solution-icon {
    color: #7e5d10;
    background: #fff4d9;
}

.solution-item h3 {
    margin-bottom: 12px;
    font-size: 21px;
}

.solution-item p {
    margin-bottom: 0;
    font-size: 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-6px);
}

.project-visual {
    position: relative;
    aspect-ratio: 1.35;
    overflow: hidden;
    padding: 36px 28px;
    background: #dce9ff;
}

.project-visual--green {
    background: #d9f3eb;
}

.project-visual--graphite {
    background: #dfe4ec;
}

.project-browser {
    width: 88%;
    height: 76%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(13, 20, 36, 0.14);
    border-radius: 7px;
    box-shadow: 0 18px 42px rgba(21, 40, 74, 0.18);
}

.project-browser > span {
    width: 6px;
    height: 6px;
    display: inline-block;
    margin-right: 3px;
    background: #b8c3d2;
    border-radius: 50%;
}

.project-browser-content {
    height: calc(100% - 18px);
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    grid-template-rows: 1fr 0.6fr;
    gap: 8px;
    padding-top: 11px;
}

.project-browser-content i {
    display: block;
    background: #edf2f8;
    border-radius: 4px;
}

.project-browser-content i:first-child {
    grid-row: span 2;
    background: #17243d;
}

.project-visual--green .project-browser-content i:first-child {
    background: #0f8266;
}

.project-visual--graphite .project-browser-content i:first-child {
    background: #313b4c;
}

.project-mobile {
    position: absolute;
    right: 25px;
    bottom: 22px;
    width: 28%;
    height: 68%;
    padding: 14px 10px;
    background: var(--color-ink);
    border: 5px solid var(--color-ink);
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(21, 40, 74, 0.2);
}

.project-mobile::before {
    position: absolute;
    inset: 5px;
    content: "";
    background: #ffffff;
    border-radius: 4px;
}

.project-mobile span {
    position: relative;
    z-index: 1;
    height: 29%;
    display: block;
    margin-bottom: 9px;
    background: #e9eff9;
    border-radius: 3px;
}

.project-mobile span:last-child {
    background: #2463eb;
}

.project-visual--green .project-mobile span:last-child {
    background: #0f9b77;
}

.project-visual--graphite .project-mobile span:last-child {
    background: #4a566a;
}

.project-content {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
    color: #758195;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.3;
}

.project-content p {
    margin-bottom: 24px;
    font-size: 15px;
}

.industries-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
    gap: 95px;
    align-items: start;
}

.industries-copy {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.industries-copy h2 {
    margin-bottom: 24px;
}

.industries-copy > p:last-child {
    max-width: 500px;
    font-size: 17px;
}

.industry-list {
    border-top: 1px solid var(--color-line);
}

.industry-item {
    display: grid;
    grid-template-columns: 48px 1fr 30px;
    gap: 18px;
    align-items: center;
    min-height: 84px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-line);
}

.industry-item > span {
    color: var(--color-blue);
    font-size: 11px;
    font-weight: 800;
}

.industry-item strong {
    font-size: 20px;
}

.industry-item i {
    color: var(--color-muted);
    font-style: normal;
    text-align: right;
    transition: transform var(--transition);
}

.industry-item:hover i {
    transform: translateX(5px);
}

.process-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
}

.process-step {
    position: relative;
    min-height: 250px;
    padding: 30px 22px;
    border-right: 1px solid var(--color-line);
}

.process-step:last-child {
    border-right: 0;
}

.process-step::before {
    position: absolute;
    top: -4px;
    left: 0;
    width: 8px;
    height: 8px;
    content: "";
    background: var(--color-blue);
    border-radius: 50%;
}

.process-step:nth-child(2n)::before {
    background: var(--color-cyan);
}

.process-step > span {
    display: block;
    margin-bottom: 60px;
    color: #8a95a5;
    font-size: 11px;
    font-weight: 800;
}

.process-step h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.process-step p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.55;
}

.contact-section {
    padding: 110px 0;
    color: #ffffff;
    background: var(--color-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(540px, 1.2fr);
    gap: 85px;
    align-items: start;
}

.contact-copy {
    padding-top: 20px;
}

.contact-copy h2 {
    margin-bottom: 22px;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 500px;
    margin-bottom: 32px;
    color: #aab6c8;
    font-size: 17px;
}

.lead-form {
    padding: 38px;
    color: var(--color-ink);
    background: #ffffff;
    border-radius: var(--radius);
}

.lead-form h3 {
    margin-bottom: 28px;
    font-size: 24px;
}

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

.form-grid label {
    min-width: 0;
    display: block;
}

.form-grid label > span {
    display: block;
    margin-bottom: 8px;
    color: var(--color-ink-soft);
    font-size: 12px;
    font-weight: 750;
}

.form-field--wide {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    color: var(--color-ink);
    background: #f8fafc;
    border: 1px solid #cfd8e4;
    border-radius: 6px;
    outline: 0;
    transition:
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

input,
select {
    height: 50px;
    padding: 0 14px;
}

textarea {
    min-height: 135px;
    padding: 13px 14px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #909bad;
}

input:focus,
select:focus,
textarea:focus {
    background: #ffffff;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.1);
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.form-status {
    margin: 0;
    color: var(--color-green);
    font-size: 13px;
    font-weight: 650;
}

.site-footer {
    padding: 76px 0 24px;
    color: #ffffff;
    background: #0a1120;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.7fr);
    gap: 60px;
    padding-bottom: 58px;
}

.brand--footer .brand-name {
    color: #ffffff;
}

.footer-brand p {
    max-width: 410px;
    margin: 25px 0 0;
    color: #8f9caf;
    font-size: 14px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column h2 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
}

.footer-column a,
.footer-column p {
    margin: 0;
    color: #8f9caf;
    font-size: 13px;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.footer-bottom span {
    margin: 0;
    color: #778499;
    font-size: 11px;
}

.footer-bottom > div {
    display: flex;
    gap: 20px;
}

.footer-bottom a {
    color: #778499;
    font-size: 11px;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Phase 2: commercial, industry and resource pages */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 52px;
    color: #7b8799;
    font-size: 12px;
    font-weight: 650;
}

.breadcrumbs a {
    transition: color var(--transition);
}

.breadcrumbs a:hover {
    color: var(--color-blue);
}

.breadcrumbs span[aria-current="page"] {
    max-width: 480px;
    overflow: hidden;
    color: var(--color-ink-soft);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inner-hero {
    position: relative;
    padding: calc(var(--header-height) + 64px) 0 104px;
    overflow: hidden;
    background: #eef3f9;
    border-bottom: 1px solid var(--color-line);
}

.inner-hero--index {
    padding-bottom: 94px;
    background: #f4f7fb;
}

.inner-hero-grid,
.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
    gap: 84px;
    align-items: end;
}

.inner-hero h1,
.article-hero h1,
.contact-page h1,
.legal-hero h1,
.centered-page h1 {
    margin-bottom: 0;
    font-size: 58px;
    line-height: 1.06;
}

.inner-hero-lead {
    max-width: 620px;
    margin-bottom: 0;
    color: #46546a;
    font-size: 19px;
    line-height: 1.7;
}

.service-hero-grid {
    align-items: center;
}

.service-hero .inner-hero-lead,
.niche-hero .inner-hero-lead {
    margin: 26px 0 32px;
}

.hero-capability,
.industry-signal {
    padding: 32px;
    color: #ffffff;
    background: var(--color-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero-capability > span,
.industry-signal > span {
    display: block;
    margin-bottom: 24px;
    color: #8fd9db;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.hero-capability ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-capability li {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 15px;
    font-weight: 650;
}

.hero-capability li::before {
    margin-right: 10px;
    color: #5ad2cf;
    content: "+";
}

.industry-signal {
    background: #15386f;
}

.industry-signal strong {
    display: block;
    margin-bottom: 16px;
    font-size: 25px;
    line-height: 1.25;
}

.industry-signal p {
    margin-bottom: 0;
    color: #b8c9e4;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.catalog-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.catalog-card:hover {
    z-index: 1;
    background: #fbfdff;
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.catalog-card > span,
.secondary-service span,
.related-grid a > span,
.niche-card > span,
.article-service-cta > span {
    color: var(--color-blue-deep);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.catalog-card h3 {
    margin: 55px 0 14px;
    font-size: 24px;
    line-height: 1.25;
}

.catalog-card p {
    font-size: 14px;
}

.catalog-card a,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--color-blue-deep);
    font-size: 14px;
    font-weight: 750;
}

.catalog-card a span,
.text-link span {
    transition: transform var(--transition);
}

.catalog-card a:hover span,
.text-link:hover span {
    transform: translateX(4px);
}

.secondary-list {
    border-top: 1px solid var(--color-line);
}

.secondary-service {
    display: grid;
    grid-template-columns: 1fr 50px;
    gap: 30px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--color-line);
}

.secondary-service h3 {
    margin: 8px 0 8px;
    font-size: 23px;
}

.secondary-service p {
    max-width: 790px;
    margin-bottom: 0;
}

.secondary-service i,
.niche-card i,
.related-grid i {
    color: var(--color-blue);
    font-size: 22px;
    font-style: normal;
    text-align: right;
    transition: transform var(--transition);
}

.secondary-service:hover i,
.niche-card:hover i,
.related-grid a:hover i {
    transform: translateX(5px);
}

.split-content {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
    gap: 92px;
    align-items: start;
}

.split-content h2,
.faq-grid h2,
.legal-content h2 {
    font-size: 42px;
    line-height: 1.16;
}

.problem-section .split-content h2,
.values-section h2,
.resource-cta h2 {
    color: #ffffff;
}

.lined-list {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.lined-list > div {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.lined-list span {
    color: #68cfd0;
    font-size: 11px;
    font-weight: 800;
}

.lined-list p {
    margin-bottom: 0;
    color: #b2bdcd;
    font-size: 17px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.feature-item {
    min-height: 170px;
    padding: 28px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.feature-item span {
    display: block;
    margin-bottom: 42px;
    color: var(--color-blue);
    font-size: 11px;
    font-weight: 800;
}

.feature-item h3 {
    margin-bottom: 0;
    font-size: 19px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.benefit-grid > div {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-right: 1px solid var(--color-line);
}

.benefit-grid > div:last-child {
    border-right: 0;
}

.benefit-grid span {
    color: var(--color-cyan);
    font-size: 20px;
}

.benefit-grid strong {
    font-size: 17px;
    line-height: 1.35;
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(500px, 1.28fr);
    gap: 90px;
}

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

.faq-list details {
    border-bottom: 1px solid var(--color-line);
}

.faq-list summary {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    flex: 0 0 auto;
    color: var(--color-blue);
    font-size: 24px;
    font-weight: 400;
    transition: transform var(--transition);
}

.faq-list details[open] summary span {
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 680px;
    padding: 0 38px 24px 0;
    margin-bottom: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.related-grid a {
    min-height: 210px;
    display: grid;
    grid-template-columns: 1fr 30px;
    grid-template-rows: auto 1fr;
    gap: 34px 18px;
    padding: 28px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.related-grid a > span {
    grid-column: 1 / -1;
}

.related-grid h3 {
    align-self: end;
    margin-bottom: 0;
    font-size: 22px;
}

.related-grid i {
    align-self: end;
}

.niche-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.niche-card {
    min-height: 305px;
    display: grid;
    grid-template-columns: 1fr 30px;
    grid-template-rows: auto auto 1fr;
    gap: 18px;
    padding: 34px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.niche-card:hover {
    z-index: 1;
    background: #f9fbff;
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.niche-card > span,
.niche-card p {
    grid-column: 1 / -1;
}

.niche-card h2 {
    margin-bottom: 0;
    font-size: 25px;
    line-height: 1.2;
}

.niche-card p {
    align-self: end;
    margin-bottom: 0;
}

.editorial-band p,
.editorial-copy p,
.resource-cta p {
    font-size: 18px;
    line-height: 1.75;
}

.editorial-copy .text-link {
    margin-top: 22px;
}

.integrity-note {
    max-width: 620px;
    margin: 22px 0 0;
    padding-left: 18px;
    color: #66748a;
    border-left: 3px solid var(--color-cyan);
    font-size: 13px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.filter-bar button {
    min-height: 42px;
    padding: 9px 14px;
    color: var(--color-ink-soft);
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.filter-bar button:hover,
.filter-bar button[aria-pressed="true"] {
    color: #ffffff;
    background: var(--color-ink);
    border-color: var(--color-ink);
}

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

.portfolio-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    transition: box-shadow var(--transition), transform var(--transition);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

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

.portfolio-card .project-visual {
    aspect-ratio: 1.7;
}

.portfolio-card-content {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.portfolio-card-content h2 {
    margin-bottom: 14px;
    font-size: 25px;
    line-height: 1.25;
}

.portfolio-card-content > p {
    margin-bottom: 28px;
}

.project-visual--blue {
    background: #dce9ff;
}

.project-visual--sand {
    background: #f1ead7;
}

.project-visual--cyan {
    background: #d9f1f3;
}

.project-visual--coral {
    background: #f4dfdc;
}

.project-visual--image {
    padding: 0;
    background: #eef2f6;
}

.project-visual--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-visual--sand .project-browser-content i:first-child {
    background: #8b6c21;
}

.project-visual--cyan .project-browser-content i:first-child {
    background: #087d82;
}

.project-visual--coral .project-browser-content i:first-child {
    background: #a44d45;
}

.empty-filter {
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-line);
}

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 72px;
    align-items: center;
}

.project-detail-grid .project-visual {
    aspect-ratio: 1.45;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.project-tags span {
    padding: 7px 10px;
    color: #42516a;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.project-external-link {
    margin-top: 26px;
}

.project-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.project-summary > div {
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.project-summary span {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.project-summary strong {
    font-size: 16px;
    line-height: 1.35;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.article-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    padding: 34px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.article-card-meta,
.article-kicker {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--color-blue-deep);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.article-card h2 {
    margin: 62px 0 16px;
    font-size: 27px;
    line-height: 1.25;
}

.article-card p {
    margin-bottom: 28px;
}

.resource-cta p {
    color: #aab6c8;
}

.article-hero {
    padding: calc(var(--header-height) + 64px) 0 88px;
    background: #f4f7fb;
    border-bottom: 1px solid var(--color-line);
}

.article-hero-inner {
    max-width: 920px;
}

.article-hero h1 {
    margin: 28px 0 24px;
}

.article-hero-inner > p {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 19px;
}

.article-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 740px);
    gap: 90px;
    justify-content: center;
    padding-top: 90px;
    padding-bottom: 110px;
}

.article-aside {
    position: sticky;
    top: calc(var(--header-height) + 34px);
    align-self: start;
    padding-top: 18px;
    border-top: 2px solid var(--color-ink);
}

.article-aside > span {
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.article-aside ol {
    margin: 22px 0 0;
    padding-left: 18px;
}

.article-aside li {
    padding: 7px 0;
    color: var(--color-muted);
    font-size: 13px;
}

.article-aside a:hover {
    color: var(--color-blue);
}

.article-body section {
    scroll-margin-top: calc(var(--header-height) + 30px);
    margin-bottom: 64px;
}

.article-body h2 {
    margin-bottom: 22px;
    font-size: 34px;
    line-height: 1.2;
}

.article-body p {
    color: #3e4a5d;
    font-size: 18px;
    line-height: 1.85;
}

.article-service-cta {
    padding: 34px;
    background: #eef3f9;
    border-left: 4px solid var(--color-blue);
}

.article-service-cta h2 {
    margin: 12px 0;
    font-size: 28px;
}

.article-service-cta p {
    font-size: 16px;
}

.about-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.value-grid > div {
    min-height: 290px;
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.value-grid span {
    display: block;
    margin-bottom: 72px;
    color: #68cfd0;
    font-size: 11px;
    font-weight: 800;
}

.value-grid h3 {
    font-size: 21px;
}

.value-grid p {
    color: #9faabd;
}

.contact-page {
    min-height: 780px;
    padding: calc(var(--header-height) + 64px) 0 100px;
    background: #eef3f9;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
    gap: 80px;
    align-items: start;
}

.contact-page-copy > p:not(.eyebrow) {
    max-width: 540px;
    margin: 26px 0 36px;
    font-size: 18px;
}

.contact-channels {
    border-top: 1px solid #c9d3e0;
}

.contact-channels > * {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 17px 0;
    border-bottom: 1px solid #c9d3e0;
}

.contact-channels span {
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.contact-channels strong {
    font-size: 15px;
}

.contact-page .lead-form {
    box-shadow: var(--shadow-soft);
}

.legal-hero {
    padding: calc(var(--header-height) + 64px) 0 76px;
    background: #f4f7fb;
    border-bottom: 1px solid var(--color-line);
}

.legal-hero h1 {
    margin-bottom: 18px;
}

.legal-content {
    max-width: 820px;
    padding-top: 82px;
    padding-bottom: 100px;
}

.legal-content section {
    margin-bottom: 48px;
}

.legal-content h2 {
    margin-bottom: 16px;
    font-size: 28px;
}

.legal-content p {
    color: #3e4a5d;
    font-size: 17px;
    line-height: 1.8;
}

.centered-page {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 50px) 0 80px;
    background: #f4f7fb;
}

.centered-page section {
    max-width: 760px;
}

.centered-page h1 {
    margin-bottom: 24px;
}

.centered-page section > p:not(.eyebrow) {
    max-width: 620px;
    margin-bottom: 30px;
    font-size: 18px;
}

.success-mark,
.error-code {
    display: block;
    margin-bottom: 28px;
    color: var(--color-blue);
    font-size: 34px;
    font-weight: 800;
}

.success-mark {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--color-green);
    border-radius: 50%;
}

.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 600ms ease,
        transform 600ms ease;
}

.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    :root {
        --header-height: 76px;
    }

    .primary-navigation {
        gap: 17px;
    }

    .primary-navigation a {
        font-size: 13px;
    }

    .header-actions .button {
        display: none;
    }

    .hero {
        min-height: 720px;
    }

    .hero-copy {
        width: 68%;
    }

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

    .trust-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 22px;
    }

    .trust-item:nth-child(4) {
        border-left: 0;
    }

    .positioning-grid,
    .problems-grid,
    .industries-grid {
        gap: 60px;
    }

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

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

    .project-card:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .project-card:last-child .project-visual {
        aspect-ratio: auto;
    }

    .process-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .process-step:nth-child(3) {
        border-right: 0;
    }

    .process-step:nth-child(n + 4) {
        border-top: 1px solid var(--color-line);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 0.75fr) minmax(480px, 1.25fr);
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 0.8fr);
        gap: 35px;
    }

    .inner-hero-grid,
    .service-hero-grid,
    .project-detail-grid {
        gap: 52px;
    }

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

    .split-content,
    .faq-grid {
        gap: 58px;
    }

    .contact-page-grid {
        gap: 48px;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .menu-toggle {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .primary-navigation {
        position: fixed;
        z-index: -1;
        top: var(--header-height);
        right: 0;
        left: 0;
        max-height: calc(100vh - var(--header-height));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        padding: 16px 18px 32px;
        background: #ffffff;
        border-top: 1px solid var(--color-line);
        box-shadow: 0 25px 40px rgba(14, 28, 52, 0.12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition:
            opacity var(--transition),
            transform var(--transition);
    }

    .site-header.is-open .primary-navigation {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .primary-navigation a {
        padding: 17px 8px;
        border-bottom: 1px solid var(--color-line);
        font-size: 17px;
    }

    .primary-navigation a::after {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero {
        min-height: 700px;
        align-items: flex-end;
        padding-top: calc(var(--header-height) + 72px);
        padding-bottom: 74px;
    }

    .hero-media::after {
        background: linear-gradient(
            90deg,
            #f7f9fc 0%,
            rgba(247, 249, 252, 0.96) 52%,
            rgba(247, 249, 252, 0.45) 100%
        );
    }

    .hero-media img {
        object-position: 63% center;
        opacity: 0.76;
    }

    .hero-copy {
        width: 78%;
    }

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

    .hero-lead {
        font-size: 18px;
    }

    .section {
        padding: 90px 0;
    }

    .display-heading,
    .section-heading h2,
    .problems-intro h2,
    .industries-copy h2,
    .contact-copy h2 {
        font-size: 40px;
    }

    .positioning-grid,
    .section-heading--split,
    .problems-grid,
    .industries-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .positioning-grid,
    .problems-grid,
    .industries-grid,
    .contact-grid {
        gap: 45px;
    }

    .section-heading--split {
        gap: 25px;
        align-items: start;
    }

    .problems-intro,
    .industries-copy {
        position: static;
    }

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

    .contact-copy {
        padding-top: 0;
    }

    .lead-form {
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(2, 0.8fr);
    }

    .footer-contact {
        grid-column: 2 / -1;
    }

    .inner-hero-grid,
    .service-hero-grid,
    .split-content,
    .faq-grid,
    .project-detail-grid,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .inner-hero-grid,
    .service-hero-grid {
        gap: 32px;
    }

    .inner-hero h1,
    .article-hero h1,
    .contact-page h1,
    .legal-hero h1,
    .centered-page h1 {
        font-size: 48px;
    }

    .service-hero-grid {
        align-items: start;
    }

    .hero-capability,
    .industry-signal {
        max-width: 560px;
    }

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

    .benefit-grid > div:nth-child(2) {
        border-right: 0;
    }

    .benefit-grid > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-line);
    }

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

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

    .article-layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .article-aside {
        position: static;
    }

    .article-aside ol {
        columns: 2;
    }

    .contact-page-copy {
        max-width: 650px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .language-switcher {
        gap: 4px;
    }

    .brand-name {
        font-size: 20px;
    }

    .hero {
        min-height: 720px;
        padding-bottom: 54px;
    }

    .hero-media::after {
        background: linear-gradient(
            180deg,
            rgba(247, 249, 252, 0.84) 0%,
            rgba(247, 249, 252, 0.94) 45%,
            #f7f9fc 76%,
            #f7f9fc 100%
        );
    }

    .hero-media img {
        height: 62%;
        object-position: 63% 30%;
        opacity: 0.58;
    }

    .hero-copy {
        width: 100%;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.07;
    }

    .hero-lead {
        font-size: 17px;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-availability {
        align-items: flex-start;
    }

    .hero-availability span {
        margin-top: 6px;
    }

    .trust-strip {
        padding: 30px 0;
    }

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

    .trust-item {
        min-height: 88px;
        padding: 14px;
        border-top: 1px solid var(--color-line);
    }

    .trust-item:nth-child(odd) {
        border-left: 0;
    }

    .trust-item:nth-child(4) {
        border-left: 1px solid var(--color-line);
    }

    .trust-item:last-child {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        border-left: 0;
    }

    .section {
        padding: 76px 0;
    }

    .display-heading,
    .section-heading h2,
    .problems-intro h2,
    .industries-copy h2,
    .contact-copy h2 {
        font-size: 34px;
        line-height: 1.18;
    }

    .positioning-copy > p,
    .section-heading--split > p,
    .problems-intro > p:last-child,
    .industries-copy > p:last-child,
    .contact-copy > p:not(.eyebrow) {
        font-size: 16px;
    }

    .services-grid,
    .solution-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 320px;
        padding: 28px;
    }

    .service-card-top {
        margin-bottom: 40px;
    }

    .problems-grid,
    .industries-grid {
        gap: 36px;
    }

    .problem-item {
        grid-template-columns: 40px 1fr;
        padding: 26px 0;
    }

    .project-card:last-child {
        grid-column: auto;
        display: block;
    }

    .project-card:last-child .project-visual {
        aspect-ratio: 1.35;
    }

    .project-visual {
        padding: 28px 20px;
    }

    .project-content {
        min-height: 250px;
        padding: 24px;
    }

    .industry-item {
        grid-template-columns: 38px 1fr 24px;
    }

    .industry-item strong {
        font-size: 17px;
    }

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

    .process-step {
        min-height: 225px;
        padding: 25px 18px;
        border-top: 1px solid var(--color-line);
    }

    .process-step:nth-child(2n) {
        border-right: 0;
    }

    .process-step:nth-child(3) {
        border-right: 1px solid var(--color-line);
    }

    .process-step > span {
        margin-bottom: 42px;
    }

    .contact-section {
        padding: 76px 0;
    }

    .lead-form {
        padding: 24px;
    }

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

    .form-field--wide {
        grid-column: auto;
    }

    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .form-footer .button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .breadcrumbs {
        margin-bottom: 38px;
    }

    .breadcrumbs span[aria-current="page"] {
        max-width: 220px;
    }

    .inner-hero,
    .article-hero,
    .contact-page,
    .legal-hero {
        padding-top: calc(var(--header-height) + 42px);
        padding-bottom: 66px;
    }

    .inner-hero h1,
    .article-hero h1,
    .contact-page h1,
    .legal-hero h1,
    .centered-page h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .inner-hero-lead,
    .article-hero-inner > p,
    .contact-page-copy > p:not(.eyebrow) {
        font-size: 17px;
    }

    .hero-capability,
    .industry-signal {
        padding: 26px;
    }

    .catalog-grid,
    .niche-catalog,
    .feature-grid,
    .related-grid,
    .article-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card,
    .niche-card,
    .article-card {
        min-height: 300px;
        padding: 26px;
    }

    .catalog-card h3,
    .article-card h2 {
        margin-top: 42px;
    }

    .secondary-service {
        grid-template-columns: 1fr 30px;
        gap: 14px;
    }

    .split-content,
    .faq-grid {
        gap: 36px;
    }

    .split-content h2,
    .faq-grid h2 {
        font-size: 32px;
    }

    .lined-list > div {
        grid-template-columns: 38px 1fr;
    }

    .lined-list p {
        font-size: 15px;
    }

    .benefit-grid,
    .project-summary {
        grid-template-columns: 1fr;
    }

    .benefit-grid > div,
    .benefit-grid > div:nth-child(2) {
        min-height: 118px;
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }

    .benefit-grid > div:last-child {
        border-bottom: 0;
    }

    .related-grid a {
        min-height: 175px;
    }

    .filter-bar {
        flex-wrap: nowrap;
        margin-right: -14px;
        margin-left: -14px;
        padding: 0 14px 8px;
        overflow-x: auto;
    }

    .filter-bar button {
        flex: 0 0 auto;
    }

    .portfolio-card .project-visual {
        aspect-ratio: 1.35;
    }

    .portfolio-card-content {
        min-height: 290px;
        padding: 24px;
    }

    .project-detail-grid .project-visual {
        aspect-ratio: 1.25;
    }

    .article-layout {
        padding-top: 62px;
        padding-bottom: 76px;
    }

    .article-aside ol {
        columns: 1;
    }

    .article-body h2 {
        font-size: 29px;
    }

    .article-body p {
        font-size: 17px;
    }

    .article-service-cta {
        padding: 26px;
    }

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

    .about-metrics .trust-item:last-child {
        grid-column: auto;
        align-items: flex-start;
        text-align: left;
        border-left: 1px solid var(--color-line);
    }

    .value-grid > div {
        min-height: 240px;
    }

    .value-grid span {
        margin-bottom: 50px;
    }

    .contact-page .lead-form {
        padding: 24px;
    }

    .legal-content {
        padding-top: 62px;
        padding-bottom: 76px;
    }

    .legal-content h2 {
        font-size: 25px;
    }

    .centered-page {
        min-height: 640px;
    }
}

@media (max-width: 390px) {
    .brand-name {
        display: none;
    }

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

    .process-list {
        grid-template-columns: 1fr;
    }

    .process-step,
    .process-step:nth-child(3) {
        border-right: 0;
    }

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

    .footer-brand,
    .footer-contact {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js-enabled [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Phase 3: estimator, proposals and persistent lead states */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.form-status.is-error,
.quote-status {
    color: #b42318;
}

button:disabled,
.button:disabled {
    cursor: wait;
    opacity: .58;
    transform: none;
}

.quote-intro {
    padding: calc(var(--header-height) + 64px) 0 86px;
    background: #eef3f9;
    border-bottom: 1px solid var(--color-line);
}

.quote-intro h1 {
    margin-bottom: 0;
    font-size: 58px;
    line-height: 1.06;
}

.quote-disclaimer {
    max-width: 610px;
    margin: 22px 0 0;
    padding-left: 16px;
    border-left: 3px solid var(--color-cyan);
    font-size: 13px;
}

.quote-workspace {
    padding: 72px 0 110px;
    background: #f6f8fa;
}

.quote-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 860px);
    gap: 46px;
    justify-content: center;
    align-items: start;
}

.quote-progress {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 24px;
    background: var(--color-dark);
    border-radius: var(--radius);
}

.quote-progress ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.quote-progress li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    color: #75849a;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.quote-progress li span {
    font-size: 10px;
    font-weight: 800;
}

.quote-progress li strong {
    font-size: 13px;
}

.quote-progress li.is-active,
.quote-progress li.is-complete {
    color: #ffffff;
}

.quote-progress li.is-active span {
    color: #60d4d0;
}

.quote-progress li.is-complete span::after {
    margin-left: 4px;
    color: #60d4d0;
    content: "✓";
}

.quote-progress > p {
    margin: 22px 0 0;
    color: #8f9caf;
    font-size: 11px;
}

.quote-form {
    min-width: 0;
    padding: 38px;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(14, 28, 52, .08);
    scroll-margin-top: calc(var(--header-height) + 18px);
}

.quote-step-heading {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    margin-bottom: 34px;
}

.quote-step-heading > span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-deep);
    background: #eaf0ff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.quote-step-heading h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.2;
}

.quote-step-heading p {
    margin: 0;
}

.option-grid,
.toggle-grid {
    margin: 0;
    padding: 0;
    border: 0;
}

.project-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.option-tile {
    min-width: 0;
    cursor: pointer;
}

.option-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-tile > span {
    min-height: 115px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 17px;
    background: #f9fafc;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.option-tile strong {
    font-size: 14px;
    line-height: 1.35;
}

.option-tile small {
    color: var(--color-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.option-tile input:checked + span {
    background: #eef3ff;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(36, 99, 235, .09);
}

.option-tile input:focus-visible + span {
    outline: 3px solid rgba(36, 99, 235, .22);
    outline-offset: 2px;
}

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

.quote-fields > label > span,
.inline-fieldset legend {
    display: block;
    margin-bottom: 7px;
    color: var(--color-ink-soft);
    font-size: 11px;
    font-weight: 750;
}

.inline-fieldset {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.inline-fieldset legend {
    width: 100%;
}

.inline-fieldset label {
    flex: 1;
    cursor: pointer;
}

.inline-fieldset input {
    position: absolute;
    opacity: 0;
}

.inline-fieldset label span {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #cfd8e4;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.inline-fieldset input:checked + span {
    color: #ffffff;
    background: var(--color-ink);
    border-color: var(--color-ink);
}

.toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.toggle-option {
    min-height: 112px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
    align-items: center;
    padding: 20px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    cursor: pointer;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
}

.toggle-control {
    position: relative;
    width: 38px;
    height: 22px;
    background: #d4dce7;
    border-radius: 20px;
    transition: background-color var(--transition);
}

.toggle-control::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    content: "";
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(13, 20, 36, .2);
    transition: transform var(--transition);
}

.toggle-option input:checked + .toggle-control {
    background: var(--color-blue);
}

.toggle-option input:checked + .toggle-control::after {
    transform: translateX(16px);
}

.toggle-option strong,
.toggle-option small {
    display: block;
}

.toggle-option strong {
    font-size: 14px;
}

.toggle-option small {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 11px;
}

.quote-field-wide {
    grid-column: 1 / -1;
}

.quote-form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
}

.quote-form-footer .button--primary {
    margin-left: auto;
}

.quote-status {
    margin: 0;
    font-size: 12px;
}

.proposal-page {
    min-height: 100vh;
    padding: calc(var(--header-height) + 30px) 0 90px;
    background: #eef2f6;
}

.proposal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.proposal-toolbar > a {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.proposal-document {
    max-width: 980px;
    padding: 48px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(14, 28, 52, .11);
}

.proposal-header,
.proposal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.proposal-header {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-line);
}

.proposal-header > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.proposal-header > div:last-child span,
.proposal-price > span,
.proposal-grid span {
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.proposal-hero {
    padding: 70px 0 52px;
}

.proposal-hero h1 {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.08;
}

.proposal-hero > p:last-child {
    font-size: 17px;
}

.proposal-price {
    padding: 30px;
    color: #ffffff;
    background: var(--color-dark);
}

.proposal-price > span {
    color: #8fd9db;
}

.proposal-price strong {
    display: block;
    margin: 12px 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.proposal-price p {
    max-width: 700px;
    margin: 0;
    color: #aab6c8;
    font-size: 12px;
}

.proposal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px 0 66px;
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.proposal-grid > div {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    padding: 18px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.proposal-grid strong {
    font-size: 14px;
}

.proposal-section {
    margin-top: 58px;
}

.proposal-section h2 {
    margin-bottom: 26px;
    font-size: 30px;
}

.proposal-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
    list-style: none;
}

.proposal-feature-list li {
    padding: 17px;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    font-weight: 650;
}

.proposal-note {
    padding: 13px 16px;
    background: #eaf6f1;
    border-left: 3px solid var(--color-green);
    font-size: 13px;
}

.proposal-steps {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-line);
    list-style: none;
}

.proposal-steps li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--color-line);
}

.proposal-steps li > span {
    color: var(--color-blue);
    font-size: 11px;
    font-weight: 800;
}

.proposal-steps p {
    margin: 5px 0 0;
}

.proposal-footer {
    margin-top: 70px;
    padding-top: 26px;
    border-top: 1px solid var(--color-line);
}

.proposal-footer > div {
    display: flex;
    flex-direction: column;
}

.proposal-footer span {
    color: var(--color-muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .quote-intro h1 { font-size: 48px; }
    .quote-layout { grid-template-columns: 1fr; }
    .quote-progress { position: static; }
    .quote-progress ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quote-progress li { border-right: 1px solid rgba(255,255,255,.12); border-bottom: 0; }
    .quote-progress li:last-child { border-right: 0; }
}

@media (max-width: 640px) {
    .quote-intro { padding: calc(var(--header-height) + 42px) 0 62px; }
    .quote-intro h1 { font-size: 38px; }
    .quote-workspace { padding: 34px 0 76px; }
    .quote-progress { padding: 18px; }
    .quote-progress li { grid-template-columns: 1fr; gap: 2px; padding: 8px; }
    .quote-progress li strong { font-size: 11px; }
    .quote-progress > p { display: none; }
    .quote-form { padding: 22px; }
    .quote-step-heading { grid-template-columns: 36px 1fr; }
    .quote-step-heading > span { width: 34px; height: 34px; }
    .quote-step-heading h2 { font-size: 23px; }
    .project-type-grid, .quote-fields, .toggle-grid { grid-template-columns: 1fr; }
    .option-tile > span { min-height: 92px; }
    .toggle-option { min-height: 94px; }
    .quote-field-wide { grid-column: auto; }
    .quote-form-footer { flex-wrap: wrap; }
    .quote-status { width: 100%; order: -1; }
    .quote-form-footer .button { flex: 1; }
    .proposal-page { padding-top: calc(var(--header-height) + 18px); }
    .proposal-toolbar { align-items: stretch; flex-direction: column; }
    .proposal-document { width: calc(100% - 28px); padding: 24px; }
    .proposal-header { align-items: flex-start; }
    .proposal-header > div:last-child { align-items: flex-start; }
    .proposal-hero { padding: 48px 0 38px; }
    .proposal-hero h1 { font-size: 36px; }
    .proposal-price { padding: 24px; }
    .proposal-price strong { font-size: 27px; }
    .proposal-grid, .proposal-feature-list { grid-template-columns: 1fr; }
    .proposal-section h2 { font-size: 26px; }
    .proposal-footer { align-items: stretch; flex-direction: column; }
}

@media print {
    @page { size: A4; margin: 14mm; }
    .site-header, .site-footer, .no-print { display: none !important; }
    body, .proposal-page { color: #000; background: #fff !important; }
    .proposal-page { padding: 0; }
    .proposal-document { width: 100%; max-width: none; padding: 0; box-shadow: none; }
    .proposal-price { color: #000; background: #f0f2f4; border: 1px solid #ccd3dc; }
    .proposal-price > span, .proposal-price p { color: #333; }
    .proposal-section, .proposal-grid, .proposal-price { break-inside: avoid; }
}

/* Phase 4: performance, final polish and visual stability */
.project-visual--image img,
.hero-media img,
.brand-logo {
    display: block;
}

.project-visual--image img,
.hero-media img {
    background: #eef2f6;
}

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

@supports (content-visibility: auto) {
    .section,
    .contact-section,
    .inner-hero {
        content-visibility: auto;
        contain-intrinsic-size: 900px;
    }

    .hero,
    .portfolio-hero,
    .project-detail-hero,
    .quote-intro {
        content-visibility: visible;
    }
}

@media (hover: hover) {
    .portfolio-card,
    .project-card,
    .service-card,
    .industry-item {
        will-change: transform;
    }
}

@media (max-width: 640px) {
    .portfolio-card,
    .project-card {
        min-height: auto;
    }
}

.project-visual--image.is-image-missing {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(13, 20, 36, 0.06), rgba(14, 118, 255, 0.12)),
        #eef2f6;
}

.project-visual--image.is-image-missing::after {
    content: "LulabTech";
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-visual--image.is-image-missing img {
    display: none;
}

/* Hero 3D test: embedded GLB model */
.hero--with-3d {
    min-height: 790px;
    background:
        radial-gradient(circle at 78% 46%, rgba(14, 118, 255, 0.18), transparent 34%),
        radial-gradient(circle at 58% 18%, rgba(22, 184, 127, 0.10), transparent 30%),
        linear-gradient(135deg, #fbfdff 0%, #eef5ff 54%, #ffffff 100%);
}

.hero-media--3d {
    pointer-events: none;
    overflow: hidden;
}

.hero-media--3d::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(14, 118, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 118, 255, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 72% 50%, #000 0%, transparent 58%);
}

.hero-media--3d::after {
    background: linear-gradient(
        90deg,
        #fbfdff 0%,
        rgba(251, 253, 255, 0.98) 33%,
        rgba(251, 253, 255, 0.70) 49%,
        rgba(251, 253, 255, 0.08) 76%,
        rgba(251, 253, 255, 0.02) 100%
    );
}

.hero-stage {
    position: absolute;
    top: 52%;
    right: max(1.6vw, calc((100vw - var(--container-width)) / 2));
    z-index: 1;
    width: min(56vw, 780px);
    height: min(58vw, 690px);
    max-height: 720px;
    min-height: 520px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    isolation: isolate;
}

.hero-stage::before {
    position: absolute;
    inset: 10% 2% 6% 18%;
    z-index: -3;
    content: "";
    border-radius: 48% 52% 45% 55%;
    background: rgba(255, 255, 255, 0.64);
    box-shadow:
        0 48px 120px rgba(19, 38, 70, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    filter: blur(1px);
}

.hero-glow {
    position: absolute;
    z-index: -2;
    border-radius: 999px;
    filter: blur(10px);
}

.hero-glow--primary {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(14, 118, 255, 0.28), rgba(14, 118, 255, 0.06) 52%, transparent 72%);
}

.hero-glow--secondary {
    right: 8%;
    bottom: 12%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(22, 184, 127, 0.18), transparent 68%);
}

.hero-model {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
    filter: drop-shadow(0 36px 58px rgba(12, 31, 61, 0.18));
}

.hero-model-fallback {
    display: none;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.82;
    filter: drop-shadow(0 34px 56px rgba(12, 31, 61, 0.16));
}

model-viewer:not(:defined) + .hero-model-fallback {
    display: block;
}

.hero-float-card {
    position: absolute;
    z-index: 3;
    padding: 11px 15px;
    border: 1px solid rgba(14, 118, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 16px 42px rgba(19, 38, 70, 0.12);
    color: #172033;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    backdrop-filter: blur(18px);
    animation: heroFloat 7s ease-in-out infinite;
}

.hero-float-card--one {
    top: 20%;
    left: 10%;
}

.hero-float-card--two {
    right: 4%;
    top: 34%;
    animation-delay: -1.8s;
}

.hero-float-card--three {
    left: 18%;
    bottom: 18%;
    animation-delay: -3.2s;
}

@keyframes heroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}

@media (max-width: 1100px) {
    .hero--with-3d {
        min-height: 740px;
    }

    .hero-stage {
        right: -7vw;
        width: 62vw;
        min-height: 480px;
        opacity: 0.9;
    }

    .hero-float-card--one {
        left: 8%;
    }
}

@media (max-width: 860px) {
    .hero--with-3d {
        min-height: 760px;
        align-items: flex-end;
        padding-bottom: 76px;
    }

    .hero-stage {
        top: 31%;
        right: 50%;
        width: min(94vw, 700px);
        height: 380px;
        min-height: 380px;
        transform: translate(50%, -50%);
        opacity: 0.62;
    }

    .hero-media--3d::after {
        background: linear-gradient(
            180deg,
            rgba(251, 253, 255, 0.34) 0%,
            rgba(251, 253, 255, 0.62) 38%,
            #fbfdff 71%,
            #fbfdff 100%
        );
    }

    .hero-float-card {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero--with-3d {
        min-height: 720px;
    }

    .hero-model {
        display: none;
    }

    .hero-model-fallback {
        display: block;
        opacity: 0.5;
    }

    .hero-stage {
        top: 28%;
        height: 300px;
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-float-card {
        animation: none;
    }

    .hero-model {
        animation: none;
    }
}

/* Phase 4.2: clean hero + 3D animation moved below hero */
.hero--clean {
    min-height: 650px;
    padding: calc(var(--header-height) + 86px) 0 90px;
    background:
        radial-gradient(circle at 80% 12%, rgba(14, 118, 255, 0.13), transparent 32%),
        radial-gradient(circle at 14% 76%, rgba(22, 184, 127, 0.08), transparent 31%),
        linear-gradient(135deg, #fbfdff 0%, #f3f8ff 52%, #ffffff 100%);
}

.hero--clean::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.46;
    background-image:
        linear-gradient(rgba(14, 118, 255, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 118, 255, 0.065) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.62) 62%, transparent 100%);
}

.hero--clean::after {
    position: absolute;
    right: -170px;
    bottom: -230px;
    width: 560px;
    height: 560px;
    content: "";
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 118, 255, 0.16), transparent 66%);
    filter: blur(4px);
}

.hero--clean .hero-inner {
    position: relative;
    z-index: 2;
}

.hero--clean .hero-copy {
    width: min(790px, 100%);
}

.hero--clean h1 {
    max-width: 760px;
}

.hero-proof-panel {
    width: min(100%, 690px);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-proof-panel span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid rgba(14, 118, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 32px rgba(20, 38, 70, 0.08);
    color: #192337;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
    backdrop-filter: blur(16px);
}

.hero-visual-section {
    position: relative;
    overflow: hidden;
    padding: 42px 0 96px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border-top: 1px solid rgba(14, 118, 255, 0.08);
}

.hero-visual-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.36;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(14, 118, 255, 0.10), transparent 26%),
        radial-gradient(circle at 82% 68%, rgba(22, 184, 127, 0.08), transparent 24%);
}

.hero-visual-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(480px, 1.18fr);
    gap: 44px;
    align-items: center;
}

.hero-visual-copy h2 {
    max-width: 520px;
    margin: 0 0 16px;
    color: #0e172a;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.hero-visual-copy p:not(.eyebrow) {
    max-width: 520px;
    margin: 0;
    color: #586579;
    font-size: 18px;
    line-height: 1.7;
}

.hero-visual-stage {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(14, 118, 255, 0.13);
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.82)),
        radial-gradient(circle at center, rgba(14, 118, 255, 0.13), transparent 46%);
    box-shadow:
        0 36px 110px rgba(20, 38, 70, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    isolation: isolate;
}

.hero-visual-stage::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    content: "";
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(14, 118, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 118, 255, 0.07) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.hero-visual-stage::after {
    position: absolute;
    inset: 11% 9% 9%;
    z-index: -2;
    content: "";
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.48);
    filter: blur(1px);
}

.hero-visual-glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(12px);
}

.hero-visual-glow--blue {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(14, 118, 255, 0.27), rgba(14, 118, 255, 0.06) 58%, transparent 74%);
}

.hero-visual-glow--green {
    right: 6%;
    bottom: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(22, 184, 127, 0.16), transparent 70%);
}

.hero-visual-model {
    width: min(100%, 760px);
    height: 500px;
    background: transparent;
    --poster-color: transparent;
    filter: drop-shadow(0 34px 54px rgba(12, 31, 61, 0.16));
}

.visual-orbit-pill {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid rgba(14, 118, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 44px rgba(20, 38, 70, 0.13);
    color: #172033;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -0.01em;
    backdrop-filter: blur(18px);
    animation: heroFloat 7s ease-in-out infinite;
}

.visual-orbit-pill--one {
    top: 16%;
    left: 12%;
}

.visual-orbit-pill--two {
    top: 26%;
    right: 12%;
    animation-delay: -1.7s;
}

.visual-orbit-pill--three {
    left: 15%;
    bottom: 14%;
    animation-delay: -3.2s;
}

@media (max-width: 1100px) {
    .hero--clean {
        min-height: 610px;
    }

    .hero--clean .hero-copy {
        width: min(700px, 100%);
    }

    .hero-visual-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual-stage {
        min-height: 480px;
    }
}

@media (max-width: 860px) {
    .hero--clean {
        min-height: auto;
        align-items: center;
        padding: calc(var(--header-height) + 70px) 0 72px;
    }

    .hero--clean .hero-copy {
        width: 100%;
    }

    .hero-visual-section {
        padding: 34px 0 80px;
    }

    .hero-visual-stage {
        min-height: 410px;
        border-radius: 28px;
    }

    .hero-visual-model {
        height: 390px;
    }
}

@media (max-width: 640px) {
    .hero--clean {
        padding: calc(var(--header-height) + 54px) 0 58px;
    }

    .hero-proof-panel {
        gap: 8px;
    }

    .hero-proof-panel span {
        min-height: 36px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .hero-visual-grid {
        gap: 26px;
    }

    .hero-visual-copy h2 {
        font-size: 34px;
    }

    .hero-visual-copy p:not(.eyebrow) {
        font-size: 16px;
    }

    .hero-visual-stage {
        min-height: 340px;
        border-radius: 24px;
    }

    .hero-visual-model {
        width: 118%;
        height: 330px;
    }

    .visual-orbit-pill {
        display: none;
    }
}

/* Phase 4.4: 3D hero integrated directly into the page background */
.hero--integrated-3d {
    min-height: 760px;
    align-items: center;
    padding: calc(var(--header-height) + 64px) 0 76px;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 40%, rgba(14, 118, 255, 0.20), transparent 35%),
        radial-gradient(circle at 86% 72%, rgba(22, 184, 127, 0.08), transparent 28%),
        linear-gradient(135deg, #fbfdff 0%, #f3f8ff 56%, #ffffff 100%);
}

.hero--integrated-3d::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.48;
    background-image:
        linear-gradient(rgba(14, 118, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 118, 255, 0.055) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, #000 58%, transparent 100%);
}

.hero--integrated-3d::after {
    position: absolute;
    right: -260px;
    top: 3%;
    width: 780px;
    height: 780px;
    content: "";
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 118, 255, 0.16), transparent 66%);
    filter: blur(4px);
}

.hero-3d-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(430px, 0.92fr) minmax(480px, 1.08fr);
    gap: clamp(28px, 4vw, 76px);
    align-items: center;
}

.hero--integrated-3d .hero-copy {
    width: 100%;
}

.hero--integrated-3d h1 {
    max-width: 680px;
    margin-bottom: 24px;
}

.hero--integrated-3d .hero-lead {
    max-width: 620px;
}

.hero--integrated-3d .hero-stage,
.hero--integrated-3d .hero-stage--inline {
    position: relative;
    top: auto;
    right: auto;
    z-index: 1;
    width: 100%;
    height: clamp(430px, 42vw, 650px);
    min-height: 430px;
    max-height: 680px;
    display: grid;
    place-items: center;
    overflow: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.hero--integrated-3d .hero-stage::before,
.hero--integrated-3d .hero-stage::after {
    display: none;
}

.hero--integrated-3d .hero-glow--primary {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(14, 118, 255, 0.24), rgba(14, 118, 255, 0.08) 56%, transparent 74%);
}

.hero--integrated-3d .hero-glow--secondary {
    right: 4%;
    bottom: 6%;
    width: 310px;
    height: 310px;
    background: radial-gradient(circle, rgba(22, 184, 127, 0.14), transparent 70%);
}

.hero--integrated-3d .hero-model {
    display: block;
    width: min(118%, 820px);
    height: 100%;
    min-height: 390px;
    background: transparent !important;
    --poster-color: transparent;
    filter: drop-shadow(0 42px 70px rgba(12, 31, 61, 0.20));
}

@media (max-width: 1100px) {
    .hero--integrated-3d {
        min-height: auto;
        padding: calc(var(--header-height) + 58px) 0 70px;
    }

    .hero-3d-grid {
        grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
        gap: 28px;
    }

    .hero--integrated-3d h1 {
        font-size: clamp(48px, 5.5vw, 58px);
    }

    .hero--integrated-3d .hero-stage,
    .hero--integrated-3d .hero-stage--inline {
        height: 500px;
        min-height: 500px;
        opacity: 1;
    }
}

@media (max-width: 860px) {
    .hero--integrated-3d {
        padding: calc(var(--header-height) + 44px) 0 58px;
    }

    .hero--integrated-3d::before {
        mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.72) 68%, transparent 100%);
    }

    .hero-3d-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero--integrated-3d .hero-copy {
        order: 1;
    }

    .hero--integrated-3d .hero-stage,
    .hero--integrated-3d .hero-stage--inline {
        order: 2;
        width: 100%;
        height: 410px;
        min-height: 410px;
        border-radius: 0;
        transform: none;
        overflow: visible;
        background: transparent;
    }

    .hero--integrated-3d .hero-model {
        display: block;
        width: 116%;
        height: 400px;
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .hero--integrated-3d {
        padding: calc(var(--header-height) + 34px) 0 48px;
    }

    .hero--integrated-3d h1 {
        font-size: clamp(38px, 12vw, 48px);
    }

    .hero--integrated-3d .hero-lead {
        font-size: 16px;
    }

    .hero--integrated-3d .hero-stage,
    .hero--integrated-3d .hero-stage--inline {
        height: 330px;
        min-height: 330px;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .hero--integrated-3d .hero-model {
        display: block;
        width: 124%;
        height: 330px;
        min-height: 330px;
        opacity: 1;
    }

    .hero--integrated-3d .hero-proof-panel {
        display: none;
    }
}


/* Phase 4.5: Spline community scene integrated in the hero */
.hero--integrated-3d .hero-stage--spline {
    height: clamp(520px, 50vw, 760px);
    min-height: 520px;
    transform: translateX(3vw) scale(1.08);
    pointer-events: auto;
}

.hero--integrated-3d .hero-stage--spline .hero-glow--primary {
    width: min(720px, 54vw);
    height: min(720px, 54vw);
    opacity: 0.68;
}

.hero--integrated-3d .hero-stage--spline .hero-glow--secondary {
    opacity: 0.58;
}

.hero-spline-viewer {
    position: relative;
    z-index: 2;
    display: block;
    width: min(132%, 960px);
    height: 100%;
    min-height: 520px;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 42px 72px rgba(12, 31, 61, 0.18));
}

.hero-stage--spline::before,
.hero-stage--spline::after {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero--integrated-3d .hero-stage--spline {
        height: 540px;
        min-height: 540px;
        transform: translateX(1vw) scale(1.02);
    }

    .hero-spline-viewer {
        width: 124%;
        min-height: 540px;
    }
}

@media (max-width: 860px) {
    .hero--integrated-3d .hero-stage--spline {
        order: 2;
        height: 430px;
        min-height: 430px;
        transform: none;
        margin-top: -8px;
    }

    .hero-spline-viewer {
        width: 118%;
        height: 430px;
        min-height: 430px;
        margin-left: -9%;
    }
}

@media (max-width: 640px) {
    .hero--integrated-3d .hero-stage--spline {
        height: 330px;
        min-height: 330px;
        margin-top: 4px;
    }

    .hero-spline-viewer {
        width: 128%;
        height: 330px;
        min-height: 330px;
        margin-left: -14%;
    }
}

/* Phase 4.6: clean Spline hero scene after removing Floor in Spline */
.hero--integrated-3d .hero-stage--spline {
    height: clamp(560px, 52vw, 800px);
    min-height: 560px;
    transform: translateX(4vw) scale(1.14);
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.hero--integrated-3d .hero-stage--spline::before,
.hero--integrated-3d .hero-stage--spline::after {
    display: none !important;
    content: none !important;
}

.hero--integrated-3d .hero-stage--spline .hero-glow--primary {
    width: min(820px, 58vw);
    height: min(820px, 58vw);
    opacity: 0.54;
    filter: blur(18px);
}

.hero--integrated-3d .hero-stage--spline .hero-glow--secondary {
    opacity: 0.42;
    filter: blur(20px);
}

.hero-spline-viewer {
    width: min(148%, 1080px) !important;
    height: 112% !important;
    min-height: 600px !important;
    margin-left: -8% !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 42px 76px rgba(12, 31, 61, 0.14));
}

@media (max-width: 1100px) {
    .hero--integrated-3d .hero-stage--spline {
        height: 560px;
        min-height: 560px;
        transform: translateX(1vw) scale(1.08);
    }

    .hero-spline-viewer {
        width: 140% !important;
        height: 108% !important;
        min-height: 560px !important;
        margin-left: -10% !important;
    }
}

@media (max-width: 860px) {
    .hero--integrated-3d .hero-stage--spline {
        height: 430px;
        min-height: 430px;
        transform: none;
        margin-top: 4px;
    }

    .hero-spline-viewer {
        width: 132% !important;
        height: 430px !important;
        min-height: 430px !important;
        margin-left: -16% !important;
    }
}

@media (max-width: 640px) {
    .hero--integrated-3d .hero-stage--spline {
        height: 340px;
        min-height: 340px;
        margin-top: 0;
    }

    .hero-spline-viewer {
        width: 150% !important;
        height: 340px !important;
        min-height: 340px !important;
        margin-left: -25% !important;
    }
}


/* Phase 4.7: final clean transparent Spline hero from corrected export */
.hero--integrated-3d .hero-stage--spline {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    height: clamp(610px, 56vw, 860px) !important;
    min-height: 610px !important;
    transform: translateX(5vw) scale(1.18) !important;
}

.hero--integrated-3d .hero-stage--spline::before,
.hero--integrated-3d .hero-stage--spline::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero--integrated-3d .hero-stage--spline .hero-glow {
    pointer-events: none !important;
}

.hero-spline-viewer {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    width: min(156%, 1160px) !important;
    height: 116% !important;
    min-height: 650px !important;
    margin-left: -12% !important;
    filter: drop-shadow(0 44px 78px rgba(12, 31, 61, 0.12)) !important;
}

@media (max-width: 1100px) {
    .hero--integrated-3d .hero-stage--spline {
        height: 570px !important;
        min-height: 570px !important;
        transform: translateX(1vw) scale(1.08) !important;
    }

    .hero-spline-viewer {
        width: 144% !important;
        height: 108% !important;
        min-height: 580px !important;
        margin-left: -14% !important;
    }
}

@media (max-width: 860px) {
    .hero--integrated-3d .hero-stage--spline {
        order: 2;
        height: 430px !important;
        min-height: 430px !important;
        transform: none !important;
        margin-top: 6px !important;
    }

    .hero-spline-viewer {
        width: 138% !important;
        height: 430px !important;
        min-height: 430px !important;
        margin-left: -19% !important;
    }
}

@media (max-width: 640px) {
    .hero--integrated-3d .hero-stage--spline {
        height: 335px !important;
        min-height: 335px !important;
    }

    .hero-spline-viewer {
        width: 154% !important;
        height: 335px !important;
        min-height: 335px !important;
        margin-left: -27% !important;
    }
}

/* Phase 4.9: keep Spline animation interactive, but avoid the full lock from the previous patch */
.hero--integrated-3d .hero-stage--spline,
.hero--integrated-3d .hero-stage--spline .hero-spline-viewer,
.hero--integrated-3d .hero-stage--spline spline-viewer,
.hero-spline-viewer {
    pointer-events: auto !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: pan-y !important;
}

.hero--integrated-3d .hero-stage--spline {
    cursor: default;
}

/* Phase 4.11: allow Spline hover/motion while avoiding browser drag selection */
.hero-spline-viewer,
.hero--integrated-3d .hero-stage--spline spline-viewer {
    pointer-events: auto !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.hero--integrated-3d .hero-stage--spline {
    touch-action: pan-y !important;
}

/* Spline hero: use the viewer's real pointer coordinates without transformed wrappers. */
.hero--integrated-3d {
    position: relative;
}

.hero--integrated-3d .hero-inner,
.hero--integrated-3d .hero-3d-grid {
    position: static;
    pointer-events: none;
}

.hero--integrated-3d .hero-copy {
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.hero--integrated-3d .hero-copy a,
.hero--integrated-3d .hero-copy button {
    pointer-events: auto;
}

.hero-spline-spacer {
    width: 100%;
    height: 680px;
    pointer-events: none;
}

.hero--integrated-3d .hero-stage--spline {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
}

.hero--integrated-3d .hero-spline-viewer,
.hero--integrated-3d .hero-stage--spline spline-viewer {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 132% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.hero--integrated-3d .hero-stage--spline .hero-glow {
    pointer-events: none !important;
}

@media (max-width: 1100px) {
    .hero-spline-spacer {
        height: 560px;
    }
}

@media (max-width: 860px) {
    .hero-spline-spacer {
        order: 2;
        height: 430px;
    }

    .hero--integrated-3d .hero-stage--spline {
        inset: auto 0 58px !important;
        height: 430px !important;
    }

    .hero--integrated-3d .hero-spline-viewer,
    .hero--integrated-3d .hero-stage--spline spline-viewer {
        left: -19%;
        width: 138% !important;
        height: 430px !important;
    }
}

@media (max-width: 640px) {
    .hero-spline-spacer {
        height: 335px;
    }

    .hero--integrated-3d .hero-stage--spline {
        bottom: 48px !important;
        height: 335px !important;
    }

    .hero--integrated-3d .hero-spline-viewer,
    .hero--integrated-3d .hero-stage--spline spline-viewer {
        left: -27%;
        width: 154% !important;
        height: 335px !important;
    }
}

/* Match the Spline scene while it loads; keep mobile clean without a floor backdrop. */
.hero--integrated-3d .hero-stage--spline .hero-glow {
    display: none !important;
}

@media (min-width: 861px) {
    .hero--integrated-3d {
        background:
            radial-gradient(ellipse at 66% 84%, rgba(70, 70, 70, 0.24) 0%, rgba(120, 120, 120, 0.12) 18%, transparent 40%),
            linear-gradient(180deg, #dfdfdf 0%, #dfdfdf 72%, #c6c6c6 88%, #adadad 100%) !important;
    }

    .hero--integrated-3d::before,
    .hero--integrated-3d::after {
        opacity: 0;
    }
}

@media (max-width: 860px) {
    .hero--integrated-3d {
        background: #dfdfdf !important;
    }

    .hero--integrated-3d::before,
    .hero--integrated-3d::after {
        opacity: 0;
    }

    .hero--integrated-3d .hero-stage--spline,
    .hero--integrated-3d .hero-spline-viewer,
    .hero--integrated-3d .hero-stage--spline spline-viewer {
        background: #dfdfdf !important;
    }
}

/* LulabTech premium visual pass: typography, portfolio cards and client logo carousel */
:root {
    --color-ink: #081225;
    --color-ink-soft: #1d2b44;
    --color-muted: #647086;
    --color-line: #dce5f2;
    --color-surface-soft: #f5f8fc;
    --color-blue: #0e76ff;
    --color-blue-deep: #0b2d63;
    --color-cyan: #16b8c5;
    --color-dark: #081225;
    --color-dark-soft: #0f1d34;
    --container-width: var(--container);
    --radius: 18px;
    --shadow-soft: 0 24px 72px rgba(8, 18, 37, 0.10);
    --shadow-card: 0 22px 54px rgba(8, 18, 37, 0.09);
    --transition: 220ms cubic-bezier(.2,.8,.2,1);
}

body {
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-ink);
    background: #ffffff;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
.brand-name {
    letter-spacing: -0.045em;
}

p {
    letter-spacing: -0.012em;
}

.button {
    border-radius: 999px;
    font-weight: 800;
}

.button--primary,
.button--dark {
    background: linear-gradient(135deg, #0b2d63, #0e76ff);
    box-shadow: 0 16px 38px rgba(14, 118, 255, 0.24);
}

.button--primary:hover,
.button--dark:hover {
    background: linear-gradient(135deg, #081f47, #0d66df);
    box-shadow: 0 20px 48px rgba(14, 118, 255, 0.30);
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(203, 213, 228, 0.78);
    box-shadow: 0 14px 44px rgba(8, 18, 37, 0.08);
}

.primary-navigation a {
    letter-spacing: -0.012em;
}

.section--soft {
    background:
        radial-gradient(circle at 8% 16%, rgba(14, 118, 255, 0.05), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

.section--dark {
    background:
        radial-gradient(circle at 14% 18%, rgba(14, 118, 255, 0.18), transparent 30%),
        radial-gradient(circle at 84% 70%, rgba(22, 184, 197, 0.10), transparent 32%),
        linear-gradient(135deg, #071226 0%, #0e1c34 100%);
}

.eyebrow {
    color: var(--color-blue-deep);
    letter-spacing: 0.08em;
}

.client-marquee-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(14, 118, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.client-marquee-section--compact {
    padding: 58px 0 26px;
    background: #ffffff;
}

.client-marquee-shell {
    overflow: hidden;
}

.client-marquee-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
    gap: 26px;
    align-items: end;
    margin-bottom: 28px;
}

.client-marquee-heading .eyebrow {
    margin-bottom: 0;
}

.client-marquee-heading h2 {
    max-width: 720px;
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.05;
}

.logo-marquee-stack {
    display: grid;
    gap: 16px;
}

.logo-marquee {
    overflow: hidden;
    padding: 2px 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logo-track {
    width: max-content;
    display: flex;
    gap: 16px;
    animation: lulabLogoMarquee 42s linear infinite;
}

.logo-marquee--reverse .logo-track {
    animation-name: lulabLogoMarqueeReverse;
    animation-duration: 48s;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

.logo-card {
    flex: 0 0 174px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 22px;
    border: 1px solid rgba(203, 213, 228, 0.76);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(8, 18, 37, 0.04);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}

.logo-card img {
    width: auto;
    max-width: 126px;
    max-height: 46px;
    object-fit: contain;
    filter: grayscale(1) saturate(0) contrast(1.05);
    opacity: 0.58;
    transition:
        filter var(--transition),
        opacity var(--transition),
        transform var(--transition);
}

.logo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 118, 255, 0.32);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(8, 18, 37, 0.09);
}

.logo-card:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.04);
}

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

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

.projects .section-heading,
.portfolio-section .filter-bar {
    position: relative;
    z-index: 1;
}

.projects-grid,
.portfolio-grid {
    gap: 26px;
}

.project-card,
.portfolio-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 228, 0.78);
    border-radius: 28px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 32px rgba(8, 18, 37, 0.045);
}

.project-card::before,
.portfolio-card::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    content: "";
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.project-card:hover,
.portfolio-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-card);
    border-color: rgba(14, 118, 255, 0.24);
}

.project-card-visual-link,
.portfolio-card > a {
    display: block;
    background: #eef3fa;
}

.project-card .project-visual,
.portfolio-card .project-visual,
.project-detail-grid .project-visual {
    background:
        radial-gradient(circle at 12% 12%, rgba(14, 118, 255, 0.08), transparent 32%),
        #eef3fa;
}

.project-card .project-visual {
    aspect-ratio: 1.48;
}

.portfolio-card .project-visual {
    aspect-ratio: 1.72;
}

.project-visual--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 520ms cubic-bezier(.2,.8,.2,1), filter var(--transition);
}

.project-visual--logo {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(14, 118, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 118, 255, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 50% 42%, #ffffff 0%, #edf4ff 72%);
    background-size: 28px 28px, 28px 28px, auto;
}

.project-logo-halo {
    position: absolute;
    width: 52%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(14, 118, 255, 0.16);
    filter: blur(48px);
}

.project-visual--logo img {
    position: relative;
    z-index: 1;
    width: min(54%, 230px);
    max-height: 44%;
    object-fit: contain;
    padding: 18px 24px;
    border: 1px solid rgba(203, 213, 228, 0.72);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 52px rgba(8, 18, 37, 0.12);
    transition: transform 520ms cubic-bezier(.2,.8,.2,1);
}

.project-card:hover .project-visual--image img,
.portfolio-card:hover .project-visual--image img {
    transform: scale(1.035);
}

.project-card:hover .project-visual--logo img,
.portfolio-card:hover .project-visual--logo img {
    transform: translateY(-4px) scale(1.025);
}

.project-card--k9-panama-security .project-visual--image img,
.portfolio-card--k9-panama-security .project-visual--image img,
.project-detail-grid--k9-panama-security .project-visual--image img {
    object-fit: contain;
    object-position: center;
    padding: 18px;
}

.project-card--nova-track-portal .project-visual--image img,
.portfolio-card--nova-track-portal .project-visual--image img,
.project-detail-grid--nova-track-portal .project-visual--image img,
.project-card--logtranspor .project-visual--image img,
.portfolio-card--logtranspor .project-visual--image img,
.project-detail-grid--logtranspor .project-visual--image img,
.project-card--bb-logistic .project-visual--image img,
.portfolio-card--bb-logistic .project-visual--image img,
.project-detail-grid--bb-logistic .project-visual--image img {
    object-position: center top;
}

.project-card--nova-track-portal .project-visual--image img,
.portfolio-card--nova-track-portal .project-visual--image img,
.project-detail-grid--nova-track-portal .project-visual--image img,
.project-card--logtranspor .project-visual--image img,
.portfolio-card--logtranspor .project-visual--image img,
.project-detail-grid--logtranspor .project-visual--image img {
    object-fit: contain;
    object-position: center;
    padding: 16px;
}

.project-card--solmas-legal .project-visual--image img,
.portfolio-card--solmas-legal .project-visual--image img,
.project-detail-grid--solmas-legal .project-visual--image img,
.project-card--quality-techno-services .project-visual--image img,
.portfolio-card--quality-techno-services .project-visual--image img,
.project-detail-grid--quality-techno-services .project-visual--image img {
    object-position: center center;
}

.project-card--orthoclinix .project-visual--image img,
.portfolio-card--orthoclinix .project-visual--image img,
.project-detail-grid--orthoclinix .project-visual--image img,
.project-card--cerebritos-panama .project-visual--image img,
.portfolio-card--cerebritos-panama .project-visual--image img,
.project-detail-grid--cerebritos-panama .project-visual--image img {
    object-position: center top;
}

.project-content,
.portfolio-card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.project-content {
    min-height: 292px;
}

.portfolio-card-content {
    min-height: 286px;
}

.project-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--color-blue-deep);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 6px 10px;
    border: 1px solid rgba(14, 118, 255, 0.12);
    border-radius: 999px;
    background: rgba(14, 118, 255, 0.06);
    color: #0b2d63;
}

.project-content h3,
.portfolio-card-content h2 {
    color: var(--color-ink);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.project-content h3 {
    font-size: 23px;
}

.portfolio-card-content h2 {
    font-size: 26px;
}

.project-content p,
.portfolio-card-content > p {
    color: #5d6a7f;
    line-height: 1.68;
}

.project-content a,
.service-card a,
.text-link {
    color: var(--color-blue-deep);
    font-weight: 800;
}

.service-card,
.solution-item,
.process-step,
.benefit-grid > div,
.feature-card,
.related-card {
    border-color: rgba(203, 213, 228, 0.82);
}

.service-card {
    border-radius: 0;
}

.filter-bar {
    gap: 10px;
    margin-bottom: 42px;
}

.filter-bar button {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(8, 18, 37, 0.035);
}

.filter-bar button:hover,
.filter-bar button[aria-pressed="true"] {
    background: linear-gradient(135deg, #0b2d63, #0e76ff);
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(14, 118, 255, 0.20);
}

.project-detail-grid .project-visual {
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(8, 18, 37, 0.13);
}

.project-tags span {
    border-radius: 999px;
    background: rgba(14, 118, 255, 0.06);
    color: var(--color-blue-deep);
}

@media (max-width: 1100px) {
    .client-marquee-heading {
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: start;
    }

    .project-content,
    .portfolio-card-content {
        padding: 26px;
    }
}

@media (max-width: 860px) {
    .client-marquee-section {
        padding: 58px 0;
    }

    .client-marquee-section--compact {
        padding: 46px 0 18px;
    }

    .client-marquee-shell {
        overflow: hidden;
    }

    .logo-card {
        flex-basis: 148px;
        height: 72px;
        padding: 15px 18px;
        border-radius: 18px;
    }

    .logo-card img {
        max-width: 108px;
        max-height: 40px;
    }

    .project-card,
    .portfolio-card {
        border-radius: 24px;
    }

    .project-card .project-visual,
    .portfolio-card .project-visual {
        aspect-ratio: 1.52;
    }
}

@media (max-width: 640px) {
    .client-marquee-section {
        padding: 46px 0;
    }

    .client-marquee-heading h2 {
        font-size: 28px;
    }

    .logo-marquee-stack {
        gap: 12px;
    }

    .logo-track {
        gap: 12px;
        animation-duration: 34s;
    }

    .logo-marquee--reverse .logo-track {
        animation-duration: 39s;
    }

    .logo-card {
        flex-basis: 132px;
        height: 66px;
        padding: 14px 16px;
    }

    .logo-card img {
        max-width: 98px;
        max-height: 36px;
    }

    .project-card .project-visual,
    .portfolio-card .project-visual {
        aspect-ratio: 1.34;
    }

    .project-content,
    .portfolio-card-content {
        min-height: auto;
        padding: 24px;
    }

    .project-meta {
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
    }

    .project-visual--image img {
        transition: none;
    }
}

/* Servicios: hero grande con interacción Spline de seguimiento de cursor */
.services-spline-hero {
    min-height: 760px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-height) + 72px) 0 104px;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 66% 86%, rgba(70, 70, 70, 0.24) 0%, rgba(120, 120, 120, 0.12) 18%, transparent 42%),
        linear-gradient(180deg, #dfdfdf 0%, #dfdfdf 72%, #c6c6c6 88%, #adadad 100%) !important;
}

.services-spline-hero__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
    touch-action: pan-y;
}

.services-spline-hero__viewer,
.services-spline-hero__stage spline-viewer {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 126% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.services-spline-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(223, 223, 223, 0.98) 0%, rgba(223, 223, 223, 0.9) 34%, rgba(223, 223, 223, 0.56) 58%, rgba(223, 223, 223, 0.14) 100%),
        linear-gradient(180deg, rgba(247, 249, 252, 0.28) 0%, rgba(173, 173, 173, 0.18) 100%);
}

.services-spline-hero .breadcrumbs,
.services-spline-hero__content {
    position: relative;
    z-index: 4;
}

.services-spline-hero .breadcrumbs {
    margin-bottom: 46px;
}

.services-spline-hero__content {
    min-height: 470px;
    align-items: center;
    pointer-events: none;
}

.services-spline-hero__content .eyebrow,
.services-spline-hero__content h1,
.services-spline-hero__content .inner-hero-lead {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.services-spline-hero__content h1 {
    max-width: 720px;
    font-size: clamp(54px, 6.2vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.services-spline-hero__content .inner-hero-lead {
    max-width: 610px;
    color: #354257;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.68;
}

.services-spline-hero a,
.services-spline-hero button {
    pointer-events: auto;
}

@media (max-width: 1100px) {
    .services-spline-hero {
        min-height: 700px;
    }

    .services-spline-hero__viewer,
    .services-spline-hero__stage spline-viewer {
        left: -14%;
        width: 142% !important;
    }

    .services-spline-hero__overlay {
        background:
            linear-gradient(90deg, rgba(223, 223, 223, 0.98) 0%, rgba(223, 223, 223, 0.9) 44%, rgba(223, 223, 223, 0.42) 100%),
            linear-gradient(180deg, rgba(247, 249, 252, 0.3) 0%, rgba(173, 173, 173, 0.18) 100%);
    }
}

@media (max-width: 860px) {
    .services-spline-hero {
        min-height: 720px;
        justify-content: flex-start;
        padding: calc(var(--header-height) + 38px) 0 82px;
        background: #dfdfdf !important;
    }

    .services-spline-hero .breadcrumbs {
        margin-bottom: 28px;
    }

    .services-spline-hero__content {
        min-height: 540px;
        align-items: start;
    }

    .services-spline-hero__content h1 {
        font-size: clamp(44px, 12vw, 64px);
    }

    .services-spline-hero__viewer,
    .services-spline-hero__stage spline-viewer {
        left: -34%;
        width: 176% !important;
        height: 100% !important;
    }

    .services-spline-hero__overlay {
        background:
            linear-gradient(180deg, rgba(223, 223, 223, 0.99) 0%, rgba(223, 223, 223, 0.86) 44%, rgba(223, 223, 223, 0.44) 100%),
            linear-gradient(90deg, rgba(223, 223, 223, 0.96) 0%, rgba(223, 223, 223, 0.48) 100%);
    }
}

@media (max-width: 640px) {
    .services-spline-hero {
        min-height: 690px;
        padding-bottom: 68px;
    }

    .services-spline-hero__content {
        min-height: 500px;
    }

    .services-spline-hero__viewer,
    .services-spline-hero__stage spline-viewer {
        left: -58%;
        width: 216% !important;
    }
}


/* Portafolio: hero grande con escena Spline ascendente */
.portfolio-spline-hero {
    min-height: 760px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-height) + 72px) 0 104px;
    isolation: isolate;
    background:
        radial-gradient(circle at 70% 42%, rgba(14, 118, 255, 0.16), transparent 34%),
        radial-gradient(ellipse at 84% 86%, rgba(70, 70, 70, 0.22) 0%, rgba(120, 120, 120, 0.10) 18%, transparent 44%),
        linear-gradient(180deg, #f0f3f7 0%, #e4e8ee 66%, #d3d8df 100%) !important;
}

.portfolio-spline-hero__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
    touch-action: pan-y;
}

.portfolio-spline-hero__viewer,
.portfolio-spline-hero__stage spline-viewer {
    position: absolute;
    inset: 0 0 0 auto;
    display: block;
    width: 118% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.portfolio-spline-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(240, 243, 247, 0.99) 0%, rgba(240, 243, 247, 0.92) 35%, rgba(240, 243, 247, 0.58) 57%, rgba(240, 243, 247, 0.18) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(196, 204, 215, 0.20) 100%);
}

.portfolio-spline-hero .breadcrumbs,
.portfolio-spline-hero__content {
    position: relative;
    z-index: 4;
}

.portfolio-spline-hero .breadcrumbs {
    margin-bottom: 46px;
}

.portfolio-spline-hero__content {
    min-height: 470px;
    align-items: center;
    pointer-events: none;
}

.portfolio-spline-hero__content .eyebrow,
.portfolio-spline-hero__content h1,
.portfolio-spline-hero__content .inner-hero-lead,
.portfolio-spline-hero__content .integrity-note {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.portfolio-spline-hero__content h1 {
    max-width: 760px;
    font-size: clamp(54px, 6.2vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.portfolio-spline-hero__content .inner-hero-lead {
    max-width: 620px;
    color: #354257;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.68;
}

.portfolio-spline-hero__content .integrity-note {
    max-width: 620px;
    color: #4e5b6f;
}

.portfolio-spline-hero a,
.portfolio-spline-hero button {
    pointer-events: auto;
}

@media (max-width: 1100px) {
    .portfolio-spline-hero {
        min-height: 700px;
    }

    .portfolio-spline-hero__viewer,
    .portfolio-spline-hero__stage spline-viewer {
        right: -18%;
        width: 146% !important;
    }

    .portfolio-spline-hero__overlay {
        background:
            linear-gradient(90deg, rgba(240, 243, 247, 0.99) 0%, rgba(240, 243, 247, 0.92) 45%, rgba(240, 243, 247, 0.46) 100%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(196, 204, 215, 0.20) 100%);
    }
}

@media (max-width: 860px) {
    .portfolio-spline-hero {
        min-height: 720px;
        justify-content: flex-start;
        padding: calc(var(--header-height) + 38px) 0 82px;
        background: #e4e8ee !important;
    }

    .portfolio-spline-hero .breadcrumbs {
        margin-bottom: 28px;
    }

    .portfolio-spline-hero__content {
        min-height: 540px;
        align-items: start;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portfolio-spline-hero__content h1 {
        font-size: clamp(44px, 12vw, 64px);
    }

    .portfolio-spline-hero__viewer,
    .portfolio-spline-hero__stage spline-viewer {
        right: -44%;
        width: 188% !important;
        height: 100% !important;
    }

    .portfolio-spline-hero__overlay {
        background:
            linear-gradient(180deg, rgba(228, 232, 238, 0.99) 0%, rgba(228, 232, 238, 0.88) 44%, rgba(228, 232, 238, 0.48) 100%),
            linear-gradient(90deg, rgba(228, 232, 238, 0.97) 0%, rgba(228, 232, 238, 0.48) 100%);
    }
}

@media (max-width: 640px) {
    .portfolio-spline-hero {
        min-height: 690px;
        padding-bottom: 68px;
    }

    .portfolio-spline-hero__content {
        min-height: 500px;
    }

    .portfolio-spline-hero__viewer,
    .portfolio-spline-hero__stage spline-viewer {
        right: -72%;
        width: 238% !important;
    }
}


/* Corrección: los Splines de servicios y portafolio deben verse con su color real.
   El gris se mantiene en el fondo del hero, pero no como filtro sobre la animación. */
.services-spline-hero__overlay,
.portfolio-spline-hero__overlay {
    display: none !important;
    background: none !important;
}

.services-spline-hero__viewer,
.services-spline-hero__stage spline-viewer,
.portfolio-spline-hero__viewer,
.portfolio-spline-hero__stage spline-viewer {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}


/* Secondary Spline heroes: keep the Lulab grey background, but never hide or filter the animation. */
.services-spline-hero,
.portfolio-spline-hero,
.industries-spline-hero {
    background:
        radial-gradient(ellipse at 66% 86%, rgba(70, 70, 70, 0.18) 0%, rgba(120, 120, 120, 0.08) 20%, transparent 46%),
        linear-gradient(180deg, #eef1f5 0%, #e3e7ed 64%, #d4d9e0 100%) !important;
}

.services-spline-hero__stage,
.portfolio-spline-hero__stage,
.industries-spline-hero__stage {
    background:
        radial-gradient(ellipse at 68% 88%, rgba(70, 70, 70, 0.16) 0%, rgba(120, 120, 120, 0.07) 22%, transparent 48%),
        linear-gradient(180deg, #eef1f5 0%, #e3e7ed 64%, #d4d9e0 100%) !important;
}

.services-spline-hero .services-spline-hero__viewer,
.services-spline-hero .services-spline-hero__stage spline-viewer,
.portfolio-spline-hero .portfolio-spline-hero__viewer,
.portfolio-spline-hero .portfolio-spline-hero__stage spline-viewer,
.industries-spline-hero .industries-spline-hero__viewer,
.industries-spline-hero .industries-spline-hero__stage spline-viewer {
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    transition: none !important;
}

/* Industrias: hero grande con robot arm en fondo gris, sin overlay encima de la animación. */
.industries-spline-hero {
    min-height: 760px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-height) + 72px) 0 104px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.industries-spline-hero__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
    touch-action: pan-y;
}

.industries-spline-hero__viewer,
.industries-spline-hero__stage spline-viewer {
    position: absolute;
    inset: 0 0 0 auto;
    display: block;
    width: 118% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.industries-spline-hero .breadcrumbs,
.industries-spline-hero__content {
    position: relative;
    z-index: 4;
}

.industries-spline-hero .breadcrumbs {
    margin-bottom: 46px;
}

.industries-spline-hero__content {
    min-height: 470px;
    align-items: center;
    pointer-events: none;
}

.industries-spline-hero__content .eyebrow,
.industries-spline-hero__content h1,
.industries-spline-hero__content .inner-hero-lead {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.industries-spline-hero__content h1 {
    max-width: 760px;
    font-size: clamp(54px, 6.2vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.industries-spline-hero__content .inner-hero-lead {
    max-width: 620px;
    color: #354257;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.68;
}

.industries-spline-hero a,
.industries-spline-hero button {
    pointer-events: auto;
}

@media (max-width: 1100px) {
    .industries-spline-hero {
        min-height: 700px;
    }

    .industries-spline-hero__viewer,
    .industries-spline-hero__stage spline-viewer {
        right: -18%;
        width: 146% !important;
    }
}

@media (max-width: 860px) {
    .industries-spline-hero {
        min-height: 720px;
        justify-content: flex-start;
        padding: calc(var(--header-height) + 38px) 0 82px;
    }

    .industries-spline-hero .breadcrumbs {
        margin-bottom: 28px;
    }

    .industries-spline-hero__content {
        min-height: 540px;
        align-items: start;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .industries-spline-hero__content h1 {
        font-size: clamp(44px, 12vw, 64px);
    }

    .industries-spline-hero__viewer,
    .industries-spline-hero__stage spline-viewer {
        right: -44%;
        width: 188% !important;
        height: 100% !important;
    }
}

@media (max-width: 640px) {
    .industries-spline-hero {
        min-height: 690px;
        padding-bottom: 68px;
    }

    .industries-spline-hero__content {
        min-height: 500px;
    }

    .industries-spline-hero__viewer,
    .industries-spline-hero__stage spline-viewer {
        right: -72%;
        width: 238% !important;
    }
}



/* Sobre Lulab y Recursos: heroes grandes con Spline limpio sobre fondo gris Lulab. */
.about-spline-hero,
.resources-spline-hero {
    min-height: 760px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-height) + 72px) 0 104px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 66% 86%, rgba(70, 70, 70, 0.18) 0%, rgba(120, 120, 120, 0.08) 20%, transparent 46%),
        linear-gradient(180deg, #eef1f5 0%, #e3e7ed 64%, #d4d9e0 100%) !important;
}

.about-spline-hero__stage,
.resources-spline-hero__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: auto;
    touch-action: pan-y;
    background:
        radial-gradient(ellipse at 68% 88%, rgba(70, 70, 70, 0.16) 0%, rgba(120, 120, 120, 0.07) 22%, transparent 48%),
        linear-gradient(180deg, #eef1f5 0%, #e3e7ed 64%, #d4d9e0 100%) !important;
}

.about-spline-hero__viewer,
.about-spline-hero__stage spline-viewer,
.resources-spline-hero__viewer,
.resources-spline-hero__stage spline-viewer {
    position: absolute;
    inset: 0 0 0 auto;
    display: block;
    width: 118% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    transition: none !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.about-spline-hero .breadcrumbs,
.resources-spline-hero .breadcrumbs,
.about-spline-hero__content,
.resources-spline-hero__content {
    position: relative;
    z-index: 4;
}

.about-spline-hero .breadcrumbs,
.resources-spline-hero .breadcrumbs {
    margin-bottom: 46px;
}

.about-spline-hero__content,
.resources-spline-hero__content {
    min-height: 470px;
    align-items: center;
    pointer-events: none;
}

.about-spline-hero__content .eyebrow,
.about-spline-hero__content h1,
.about-spline-hero__content .inner-hero-lead,
.resources-spline-hero__content .eyebrow,
.resources-spline-hero__content h1,
.resources-spline-hero__content .inner-hero-lead {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.about-spline-hero__content h1,
.resources-spline-hero__content h1 {
    max-width: 760px;
    font-size: clamp(54px, 6.2vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.about-spline-hero__content .inner-hero-lead,
.resources-spline-hero__content .inner-hero-lead {
    max-width: 620px;
    color: #354257;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.68;
}

.about-spline-hero a,
.about-spline-hero button,
.resources-spline-hero a,
.resources-spline-hero button {
    pointer-events: auto;
}


.about-spline-hero__viewer--mobile {
    display: none !important;
}


/* Sobre Lulab: Batman desktop uses a dark scene, so the hero copy must stay bright/readable. */
.page-about-lulab .about-spline-hero__content .eyebrow,
.page-about-lulab .about-spline-hero__content h1,
.page-about-lulab .about-spline-hero__content .inner-hero-lead {
    color: #f7fbff !important;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.74), 0 2px 10px rgba(0, 0, 0, 0.72) !important;
}

.page-about-lulab .about-spline-hero__content .eyebrow {
    color: #70a9ff !important;
}

.page-about-lulab .about-spline-hero .breadcrumbs,
.page-about-lulab .about-spline-hero .breadcrumbs a,
.page-about-lulab .about-spline-hero .breadcrumbs span {
    color: rgba(244, 248, 255, 0.82) !important;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72) !important;
}

@media (min-width: 861px) {
    .page-about-lulab .site-header:not(.is-scrolled):not(.is-open) .primary-navigation a,
    .page-about-lulab .site-header:not(.is-scrolled):not(.is-open) .language-switcher,
    .page-about-lulab .site-header:not(.is-scrolled):not(.is-open) .language-switcher a {
        color: rgba(244, 248, 255, 0.86) !important;
    }

    .page-about-lulab .site-header:not(.is-scrolled):not(.is-open) .language-switcher a[aria-current="page"] {
        color: #ffffff !important;
    }
}

@media (max-width: 860px) {
    .page-about-lulab .about-spline-hero__content .eyebrow,
    .page-about-lulab .about-spline-hero__content h1,
    .page-about-lulab .about-spline-hero__content .inner-hero-lead {
        color: #f7fbff !important;
        text-shadow: 0 16px 44px rgba(0, 0, 0, 0.74), 0 2px 10px rgba(0, 0, 0, 0.72) !important;
    }

    .page-about-lulab .about-spline-hero__content .eyebrow {
        color: #70a9ff !important;
    }

    .page-about-lulab .about-spline-hero .breadcrumbs,
    .page-about-lulab .about-spline-hero .breadcrumbs a,
    .page-about-lulab .about-spline-hero .breadcrumbs span {
        color: rgba(244, 248, 255, 0.82) !important;
        text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72) !important;
    }
}

.resources-spline-hero__viewer,
.resources-spline-hero__stage spline-viewer {
    right: -8%;
    width: 126% !important;
}

@media (max-width: 1100px) {
    .about-spline-hero,
    .resources-spline-hero {
        min-height: 700px;
    }

    .about-spline-hero__viewer,
    .about-spline-hero__stage spline-viewer,
    .resources-spline-hero__viewer,
    .resources-spline-hero__stage spline-viewer {
        right: -18%;
        width: 146% !important;
    }
}

@media (max-width: 860px) {
    .about-spline-hero__viewer--desktop {
        display: none !important;
    }

    .about-spline-hero__viewer--mobile {
        display: block !important;
    }

    .about-spline-hero,
    .resources-spline-hero {
        min-height: 720px;
        justify-content: flex-start;
        padding: calc(var(--header-height) + 38px) 0 82px;
    }

    .about-spline-hero .breadcrumbs,
    .resources-spline-hero .breadcrumbs {
        margin-bottom: 28px;
    }

    .about-spline-hero__content,
    .resources-spline-hero__content {
        min-height: 540px;
        align-items: start;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-spline-hero__content h1,
    .resources-spline-hero__content h1 {
        font-size: clamp(44px, 12vw, 64px);
    }

    .about-spline-hero__viewer,
    .about-spline-hero__stage spline-viewer,
    .resources-spline-hero__viewer,
    .resources-spline-hero__stage spline-viewer {
        right: -44%;
        width: 188% !important;
        height: 100% !important;
    }
}

@media (max-width: 640px) {
    .about-spline-hero,
    .resources-spline-hero {
        min-height: 690px;
        padding-bottom: 68px;
    }

    .about-spline-hero__content,
    .resources-spline-hero__content {
        min-height: 500px;
    }

    .about-spline-hero__viewer,
    .about-spline-hero__stage spline-viewer,
    .resources-spline-hero__viewer,
    .resources-spline-hero__stage spline-viewer {
        right: -72%;
        width: 238% !important;
    }
}

/* Home mobile hero: keep the 3D character inside the same hero instead of pushing it below the text */
@media (max-width: 860px) {
    .hero--integrated-3d {
        min-height: 760px;
        display: flex;
        align-items: center;
        padding: calc(var(--header-height) + 34px) 0 56px !important;
        overflow: hidden;
        background: #dfdfdf !important;
    }

    .hero--integrated-3d .hero-inner,
    .hero--integrated-3d .hero-3d-grid {
        position: relative !important;
        z-index: 4;
        display: block;
        min-height: 0;
        pointer-events: none;
    }

    .hero--integrated-3d .hero-copy {
        position: relative;
        z-index: 6;
        max-width: 620px;
        padding-top: 0;
    }

    .hero--integrated-3d h1 {
        max-width: 620px;
        font-size: clamp(48px, 12.5vw, 74px);
        line-height: 0.98;
        letter-spacing: -0.065em;
    }

    .hero--integrated-3d .hero-lead {
        max-width: 520px;
        color: #354257;
    }

    .hero--integrated-3d .hero-actions,
    .hero--integrated-3d .hero-availability {
        position: relative;
        z-index: 7;
    }

    .hero-spline-spacer {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
    }

    .hero--integrated-3d .hero-stage--spline {
        position: absolute !important;
        inset: 0 !important;
        z-index: 2 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        background: transparent !important;
        pointer-events: auto !important;
    }

    .hero--integrated-3d .hero-spline-viewer,
    .hero--integrated-3d .hero-stage--spline spline-viewer {
        position: absolute !important;
        top: 0 !important;
        left: 12% !important;
        width: 118% !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        filter: drop-shadow(0 40px 70px rgba(12, 31, 61, 0.12)) !important;
    }
}

@media (max-width: 640px) {
    .hero--integrated-3d {
        min-height: 725px;
        padding: calc(var(--header-height) + 26px) 0 46px !important;
    }

    .hero--integrated-3d h1 {
        max-width: 380px;
        font-size: clamp(42px, 13.4vw, 58px);
    }

    .hero--integrated-3d .hero-lead {
        max-width: 360px;
        font-size: 16px;
        line-height: 1.55;
    }

    .hero--integrated-3d .hero-spline-viewer,
    .hero--integrated-3d .hero-stage--spline spline-viewer {
        top: 2% !important;
        left: 4% !important;
        width: 142% !important;
        height: 102% !important;
    }
}

@media (max-width: 420px) {
    .hero--integrated-3d {
        min-height: 710px;
    }

    .hero--integrated-3d .hero-spline-viewer,
    .hero--integrated-3d .hero-stage--spline spline-viewer {
        left: -2% !important;
        width: 154% !important;
    }
}


/* Industrias: usar la misma escena y composición visual del hero de Servicios. */
.industries-spline-hero .industries-spline-hero__viewer,
.industries-spline-hero .industries-spline-hero__stage spline-viewer {
    inset: 0 auto 0 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 126% !important;
}

@media (max-width: 1100px) {
    .industries-spline-hero .industries-spline-hero__viewer,
    .industries-spline-hero .industries-spline-hero__stage spline-viewer {
        left: -14% !important;
        right: auto !important;
        width: 142% !important;
    }
}

@media (max-width: 860px) {
    .industries-spline-hero .industries-spline-hero__viewer,
    .industries-spline-hero .industries-spline-hero__stage spline-viewer {
        left: -34% !important;
        right: auto !important;
        width: 176% !important;
    }
}

@media (max-width: 640px) {
    .industries-spline-hero .industries-spline-hero__viewer,
    .industries-spline-hero .industries-spline-hero__stage spline-viewer {
        left: -58% !important;
        right: auto !important;
        width: 216% !important;
    }
}


/* Desktop + mobile: keep services and industries copy white over the dark hero robots. */
.services-spline-hero__content .eyebrow,
.services-spline-hero__content h1,
.services-spline-hero__content .inner-hero-lead,
.industries-spline-hero__content .eyebrow,
.industries-spline-hero__content h1,
.industries-spline-hero__content .inner-hero-lead {
    color: #f7fbff !important;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.74), 0 2px 10px rgba(0, 0, 0, 0.72) !important;
}

.services-spline-hero__content .eyebrow,
.industries-spline-hero__content .eyebrow {
    color: #70a9ff !important;
}

.services-spline-hero .breadcrumbs,
.services-spline-hero .breadcrumbs a,
.services-spline-hero .breadcrumbs span,
.industries-spline-hero .breadcrumbs,
.industries-spline-hero .breadcrumbs a,
.industries-spline-hero .breadcrumbs span {
    color: rgba(244, 248, 255, 0.82) !important;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72) !important;
}

/* Corrección móvil: mantener animaciones originales y poner el copy legible en blanco sobre robots oscuros. */
@media (max-width: 860px) {
    .services-spline-hero__content .eyebrow,
    .services-spline-hero__content h1,
    .services-spline-hero__content .inner-hero-lead,
    .industries-spline-hero__content .eyebrow,
    .industries-spline-hero__content h1,
    .industries-spline-hero__content .inner-hero-lead {
        color: #f7fbff !important;
        text-shadow: 0 16px 44px rgba(0, 0, 0, 0.74), 0 2px 10px rgba(0, 0, 0, 0.72) !important;
    }

    .services-spline-hero__content .eyebrow,
    .industries-spline-hero__content .eyebrow {
        color: #70a9ff !important;
    }

    .services-spline-hero .breadcrumbs,
    .services-spline-hero .breadcrumbs a,
    .services-spline-hero .breadcrumbs span,
    .industries-spline-hero .breadcrumbs,
    .industries-spline-hero .breadcrumbs a,
    .industries-spline-hero .breadcrumbs span {
        color: rgba(244, 248, 255, 0.82) !important;
        text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72) !important;
    }
}

