:root {
    --premium-border: rgba(10, 31, 54, 0.08);
    --premium-border-strong: rgba(10, 31, 54, 0.14);
    --premium-soft: rgba(255, 255, 255, 0.82);
    --premium-shadow: 0 24px 60px rgba(7, 28, 49, 0.12);
    --premium-shadow-soft: 0 16px 36px rgba(7, 28, 49, 0.08);
    --premium-radius: 26px;
}

html.has-cookie-modal,
body.has-cookie-modal {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.social-icon-link,
.footer-icon-line svg,
.contact-link-card a svg,
.footer-list a svg,
.footer-list button svg {
    flex: 0 0 auto;
}

.social-icon-link svg,
.footer-icon-line svg,
.contact-link-card a svg,
.footer-list a svg,
.footer-list button svg {
    width: 18px;
    height: 18px;
    display: block;
}

.site-header .social-icon-link svg,
.mobile-social-icons .social-icon-link svg,
.footer-social-row .social-icon-link svg {
    width: 18px;
    height: 18px;
}

.social-icon-link {
    overflow: hidden;
}

.breadcrumb-shell {
    padding: 16px 0 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-list li + li::before {
    content: '›';
    color: rgba(96, 114, 135, 0.66);
}

.breadcrumb-list a {
    color: var(--primary-2);
    font-weight: 700;
}

.meta-line {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10, 31, 54, 0.05);
    color: var(--muted);
    font-weight: 700;
}

.home-focus-rail {
    padding-inline: 0;
}

.home-featured-grid,
.home-blog-grid,
.services-overview-grid {
    align-items: stretch;
}

.home-featured-grid .service-card,
.home-blog-grid .blog-card,
.services-overview-grid .service-card {
    height: 100%;
}

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

.blog-card-media,
.blog-detail-cover-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(135deg, rgba(10, 31, 54, 0.06), rgba(214, 179, 110, 0.12));
}

.blog-card-media img,
.blog-detail-cover-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-cover-shell {
    border-radius: 22px;
    margin-bottom: 22px;
}

.blog-detail-cover-shell img {
    aspect-ratio: 16 / 9;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.blog-detail-layout.no-embed {
    grid-template-columns: minmax(0, 1fr);
}

.blog-embed-column {
    position: sticky;
    top: 118px;
    align-self: start;
    display: grid;
    gap: 16px;
}

.blog-embed-column > * {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-soft);
}

.blog-prose.has-aside {
    min-width: 0;
}

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

.blog-nav > span {
    display: none;
}

.blog-nav-prev,
.blog-nav-next {
    display: grid;
    gap: 8px;
    min-height: 100%;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--premium-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--premium-shadow-soft);
}

.blog-nav-prev span,
.blog-nav-next span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.blog-nav-prev strong,
.blog-nav-next strong {
    color: var(--primary);
    font-size: 1.04rem;
    line-height: 1.4;
}

.detail-hero-wrap {
    overflow: hidden;
}

.legal-grid .detail-copy,
.privacy-rich-copy,
.blog-prose {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow);
}

.privacy-rich-copy h2:first-child,
.blog-prose h2:first-child,
.detail-copy h2:first-child {
    margin-top: 0;
}

.contact-link-card,
.contact-form-card,
.contact-card,
.sticky-card,
.review-card {
    border: 1px solid var(--premium-border);
}

.contact-link-card,
.corporate-links-card {
    display: grid;
    gap: 12px;
}

.contact-link-card a,
.footer-list a,
.footer-icon-line,
.footer-link-button {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-link-card a {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(10, 31, 54, 0.035);
    border: 1px solid rgba(10, 31, 54, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.contact-link-card a:hover,
.contact-link-card a:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(177, 138, 74, 0.22);
}

.contact-link-card a span {
    min-width: 0;
}

.site-footer {
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(214, 179, 110, 0.14), transparent 32%), radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 26%);
    pointer-events: none;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    align-items: start;
}

.footer-list,
.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.footer-list li {
    color: rgba(255, 255, 255, 0.8);
}

.footer-list a,
.footer-icon-line,
.footer-link-button {
    color: #fff;
    line-height: 1.55;
}

.footer-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
}

.footer-social-row {
    flex-wrap: wrap;
}

.footer-social-row .social-icon-link {
    width: 44px;
    height: 44px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.footer-social-row .social-icon-link:hover,
.footer-social-row .social-icon-link:focus-visible {
    color: #08192a;
    background: #fff;
}

.footer-catalog {
    margin-top: 18px;
    width: 100%;
}

.cookie-settings-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1300;
}

.cookie-settings-launcher button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #0a1f36, #153b63);
    box-shadow: 0 22px 42px rgba(7, 28, 49, 0.22);
}

.cookie-settings-launcher svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.cookie-banner {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1350;
    width: min(420px, calc(100vw - 24px));
    max-height: min(78vh, 720px);
    overflow: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(7, 28, 49, 0.98), rgba(10, 31, 54, 0.98));
    color: #fff;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.28);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-minimal {
    backdrop-filter: blur(18px) saturate(130%);
}

.home-blog-rail {
    display: block;
}

.toggle-switch-ios span {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cookie-banner.is-expanded {
    width: min(520px, calc(100vw - 24px));
}

.cookie-content {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.cookie-summary h2,
.cookie-option-row h3 {
    margin: 0;
}

.cookie-summary p,
.cookie-option-row p,
.cookie-reset-note {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.cookie-actions-inline,
.cookie-panel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cookie-actions-inline .button,
.cookie-panel-actions .button {
    min-height: 46px;
}

.cookie-panel {
    display: grid;
    gap: 14px;
    margin-top: 2px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.cookie-option-row > div {
    min-width: 0;
}

.cookie-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(214, 179, 110, 0.18);
    color: #f3ddb2;
    font-weight: 800;
    font-size: 0.86rem;
}

.cookie-reset-note {
    font-size: 0.92rem;
    line-height: 1.6;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 58px;
    min-width: 58px;
    height: 34px;
}

.toggle-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.toggle-switch span {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.toggle-switch span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease;
}

.toggle-switch input:checked + span {
    background: linear-gradient(135deg, rgba(214, 179, 110, 0.95), rgba(177, 138, 74, 0.95));
    border-color: rgba(214, 179, 110, 0.5);
}

.toggle-switch input:checked + span::after {
    transform: translateX(24px);
}

.external-media-placeholder {
    display: grid;
    gap: 10px;
    place-items: start;
    padding: 24px;
    min-height: 220px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(10, 31, 54, 0.08), rgba(214, 179, 110, 0.12));
    border: 1px dashed rgba(10, 31, 54, 0.18);
}

.external-media-placeholder strong {
    color: var(--primary);
    font-size: 1.02rem;
}

.external-media-placeholder p {
    margin: 0;
    color: var(--muted);
}

.legacy-page-layout {
    display: grid;
    gap: 36px;
}

.legacy-block {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr) minmax(240px, 0.72fr);
    gap: 24px;
    align-items: stretch;
}

.legacy-block-copy,
.legacy-block-media-main,
.legacy-block-media-side {
    min-width: 0;
}

.legacy-block-copy {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--premium-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--premium-shadow-soft);
}

.legacy-block-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 2.2vw, 2.5rem);
    line-height: 1.1;
}

.legacy-block-copy p:last-child {
    margin-bottom: 0;
}

.legacy-block-media-main,
.legacy-block-media-side picture,
.legacy-preview-copy {
    border-radius: 28px;
    overflow: hidden;
}

.legacy-block-media-main {
    box-shadow: var(--premium-shadow);
}

.legacy-block-media-main img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.legacy-block-media-side {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.legacy-block-media-side img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--premium-shadow-soft);
}

.legacy-block-media-side.kaan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legacy-block-media-side.kaan picture:first-child {
    grid-column: span 2;
}

.legacy-preview-copy {
    padding: 8px 0;
}

.accordion-item {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-soft);
}

.accordion-trigger {
    border-radius: 24px;
    color: var(--primary);
}

.accordion-trigger-label {
    min-width: 0;
    text-align: left;
    font-size: 1rem;
}

.accordion-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(10, 31, 54, 0.06);
    font-size: 1.2rem;
    line-height: 1;
    flex: 0 0 auto;
}

.tag-list-compact {
    gap: 12px;
}

.tag-list-compact li {
    background: linear-gradient(135deg, rgba(10, 31, 54, 0.06), rgba(214, 179, 110, 0.12));
}

.statline,
.quick-contact {
    backdrop-filter: blur(18px);
}

.reviews-controls {
    justify-content: center;
    margin-top: 18px;
}

.reviews-controls button {
    box-shadow: 0 12px 24px rgba(10, 31, 54, 0.08);
}

.reviews-slider {
    display: grid;
    gap: 8px;
}

@media (max-width: 1180px) {
    .services-overview-grid,
    .home-featured-grid,
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legacy-block {
        grid-template-columns: minmax(0, 1fr);
    }

    .legacy-block-media-main img {
        min-height: 380px;
    }

    .blog-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-embed-column {
        position: static;
        order: 2;
    }
}

@media (max-width: 900px) {
    .footer-grid,
    .contact-layout,
    .blog-nav,
    .card-stack {
        grid-template-columns: 1fr;
    }

    .cookie-banner,
    .cookie-banner.is-expanded {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: min(82vh, 760px);
    }

    .cookie-settings-launcher {
        right: 14px;
        bottom: 14px;
    }

    .cookie-content {
        padding: 18px;
    }

    .cookie-option-row {
        align-items: flex-start;
    }

    .legacy-block-media-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .services-overview-grid,
    .home-featured-grid,
    .home-blog-grid,
    .service-card-grid.compact-grid {
        grid-template-columns: 1fr;
    }

    .legacy-block-copy {
        padding: 22px;
    }

    .legacy-block-media-side,
    .legacy-block-media-side.kaan {
        grid-template-columns: 1fr;
    }

    .legacy-block-media-side.kaan picture:first-child {
        grid-column: auto;
    }

    .cookie-actions-inline,
    .cookie-panel-actions {
        flex-direction: column;
    }

    .cookie-actions-inline .button,
    .cookie-panel-actions .button {
        width: 100%;
    }

    .cookie-option-row {
        flex-direction: column;
    }

    .footer-bottom {
        align-items: flex-start;
    }
}


.hero-video-layer {
    overflow: hidden;
    isolation: isolate;
}

.hero-video-layer iframe {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
    border: 0;
    transform: scale(1.36);
    transform-origin: center center;
    opacity: 0.98;
}

.footer-brand {
    gap: 16px;
}

.footer-brand img {
    width: 84px;
    height: auto;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.18));
}

.footer-nav-list {
    gap: 10px;
}

.footer-nav-list li {
    color: inherit;
}

.footer-nav-list a,
.footer-nav-list .footer-link-button {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.footer-nav-list a::after,
.footer-nav-list .footer-link-button::after {
    content: '→';
    flex: 0 0 auto;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.64);
    transition: transform 0.18s ease, color 0.18s ease;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible,
.footer-nav-list .footer-link-button:hover,
.footer-nav-list .footer-link-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(214, 179, 110, 0.3);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-nav-list a:hover::after,
.footer-nav-list a:focus-visible::after,
.footer-nav-list .footer-link-button:hover::after,
.footer-nav-list .footer-link-button:focus-visible::after {
    transform: translateX(3px);
    color: #fff;
}

.footer-nav-list .footer-link-button {
    font-weight: 700;
}

@media (max-width: 900px) {
    .footer-brand img {
        width: 74px;
    }
}

@media (max-width: 720px) {
    .hero-video-layer iframe {
        transform: scale(1.72);
    }

    .footer-nav-list a,
    .footer-nav-list .footer-link-button {
        padding: 12px 14px;
        border-radius: 14px;
    }
}


.hero.hero-video.hero-fullscreen {
    min-height: calc(var(--hero-vh, 100svh) - var(--site-header-height, 0px));
    align-items: stretch;
}

.hero-grid-single {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: calc(var(--hero-vh, 100svh) - var(--site-header-height, 0px));
    padding-block: clamp(48px, 8vw, 88px);
}

.hero-copy-compact {
    max-width: min(780px, 100%);
}

.hero-copy-compact .lead {
    max-width: 62ch;
}

.hero-copy-compact h1 {
    max-width: 11ch;
}

.hero-video-layer,
.hero-video-fallback {
    background: #071a2d;
}

.hero-video-layer iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.08);
    transform-origin: center center;
}

.social-icon-link svg,
.social-icon-link svg path,
.footer-icon-line svg,
.footer-icon-line svg path,
.contact-link-card a svg,
.contact-link-card a svg path,
.footer-list a svg,
.footer-list a svg path,
.footer-list button svg,
.footer-list button svg path {
    fill: currentColor;
}

.footer-social-row .social-icon-link,
.footer-social-row .social-icon-link svg,
.footer-social-row .social-icon-link svg path {
    color: #fff;
    fill: currentColor;
}

.footer-brand img {
    width: 102px;
}

.footer-nav-list {
    gap: 12px;
}

.footer-nav-list a,
.footer-nav-list .footer-link-button {
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.footer-nav-list a::after,
.footer-nav-list .footer-link-button::after {
    color: rgba(255, 255, 255, 0.72);
}

.reviews-slider {
    width: min(100%, 1200px);
    margin-inline: auto;
    gap: 16px;
}

.reviews-viewport {
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.review-card {
    flex: 0 0 calc((100% - 44px) / 3);
    max-width: calc((100% - 44px) / 3);
    min-height: 100%;
}

.reviews-controls button {
    width: 46px;
    height: 46px;
}

@media (max-width: 1080px) {
    .review-card {
        flex-basis: calc((100% - 22px) / 2);
        max-width: calc((100% - 22px) / 2);
    }
}

@media (max-width: 900px) {
    .hero.hero-video.hero-fullscreen,
    .hero-grid-single {
        min-height: calc(var(--hero-vh, 100svh) - var(--site-header-height, 0px));
    }

    .footer-brand img {
        width: 92px;
    }
}

@media (max-width: 720px) {
    .hero-grid-single {
        padding-block: 36px 44px;
    }

    .hero-copy-compact h1 {
        max-width: none;
    }

    .hero-video-layer iframe {
        width: 177.78vh;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%) scale(1.16);
    }

    .review-card {
        flex-basis: 100%;
        max-width: 100%;
    }

    .footer-brand img {
        width: 84px;
    }
}


.home-pillars-head {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
    gap: 14px;
    margin-inline: auto;
    text-align: center;
}

.home-pillars-copy {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.home-pillars-head .eyebrow,
.home-pillars-head h2,
.home-pillars-intro {
    margin-inline: auto;
}

.home-pillars-head h2 {
    max-width: 16ch;
}

.home-pillars-intro {
    max-width: 78ch;
    line-height: 1.78;
    color: var(--muted);
}

.pillar-grid-centered {
    grid-template-columns: repeat(4, minmax(220px, 280px));
    justify-content: center;
    gap: 22px;
}

.pillar-card-centered {
    height: 100%;
    display: grid;
    align-content: start;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 26px 24px;
}

.pillar-card-centered h3,
.pillar-card-centered p {
    margin-inline: auto;
}

.pillar-card-centered p {
    max-width: 28ch;
    line-height: 1.7;
}

.pillar-card-centered a {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

@media (max-width: 1180px) {
    .pillar-grid-centered {
        grid-template-columns: repeat(2, minmax(240px, 300px));
    }
}

@media (max-width: 720px) {
    .home-pillars-head {
        gap: 12px;
        text-align: left;
    }

    .home-pillars-copy {
        justify-items: start;
    }

    .home-pillars-head .eyebrow,
    .home-pillars-head h2,
    .home-pillars-intro {
        margin-inline: 0;
    }

    .home-pillars-head h2,
    .home-pillars-intro,
    .pillar-card-centered p {
        max-width: none;
    }

    .pillar-grid-centered {
        grid-template-columns: 1fr;
    }
}

/* Home page alignment and rhythm system */
.page-home .section-head {
    grid-template-columns: minmax(0, 920px);
    justify-content: center;
    justify-items: center;
    gap: 14px;
    margin-inline: auto;
    margin-bottom: clamp(24px, 3.6vw, 40px);
    text-align: center;
}

.page-home .section-head > div,
.page-home .home-pillars-copy {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.page-home .section-head .eyebrow,
.page-home .section-head h2,
.page-home .section-head p,
.page-home .home-pillars-head .eyebrow,
.page-home .home-pillars-head h2,
.page-home .home-pillars-intro {
    margin-inline: auto;
}

.page-home .section-head h2,
.page-home .split-copy h2,
.page-home .legacy-preview-copy h2,
.page-home .hero-copy-compact h1 {
    max-width: 16ch;
    text-wrap: balance;
}

.page-home .section-head p,
.page-home .home-pillars-intro,
.page-home .split-copy p,
.page-home .legacy-preview-copy p,
.page-home .hero-copy-compact .lead,
.page-home .service-body p,
.page-home .blog-card-body p,
.page-home .review-card p {
    max-width: min(72ch, 100%);
    margin-inline: auto;
    text-wrap: pretty;
}

.page-home .hero-copy-compact,
.page-home .split-copy,
.page-home .legacy-preview-copy,
.page-home .service-body,
.page-home .blog-card-body,
.page-home .review-card,
.page-home .matrix-card,
.page-home .counter-card {
    text-align: center;
}

.page-home .split-copy,
.page-home .legacy-preview-copy,
.page-home .service-body,
.page-home .blog-card-body,
.page-home .matrix-card {
    justify-items: center;
}

.page-home .split-copy,
.page-home .legacy-preview-copy {
    display: grid;
    gap: 18px;
}

.page-home .hero-actions,
.page-home .country-badges,
.page-home .catalog-inline,
.page-home .matrix-card ul,
.page-home .reviews-controls {
    justify-content: center;
}

.page-home .check-grid {
    width: min(760px, 100%);
    margin-inline: auto;
}

.page-home .check-grid article {
    text-align: center;
}

.page-home .service-body .category-pill,
.page-home .blog-card a,
.page-home .service-body a {
    align-self: center;
    justify-self: center;
}

.page-home .service-body h3,
.page-home .blog-card-body h3,
.page-home .matrix-card h3,
.page-home .review-head,
.page-home .review-head > div {
    text-align: center;
}

.page-home .review-head {
    justify-content: center;
}

.page-home .service-body h3,
.page-home .blog-card-body h3 {
    max-width: 22ch;
    margin-inline: auto;
    text-wrap: balance;
}

.page-home .home-focus-rail,
.page-home .home-blog-rail {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.page-home .home-featured-grid,
.page-home .home-blog-grid {
    justify-content: center;
}

.page-home .matrix-grid {
    width: min(1080px, 100%);
    margin-inline: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
    justify-content: center;
    gap: 20px;
    align-items: stretch;
}

.page-home .matrix-card {
    min-height: 100%;
    padding: 24px 22px;
    gap: 14px;
}

.page-home .matrix-card h3 {
    max-width: 18ch;
    text-wrap: balance;
}

.page-home .matrix-card ul {
    width: 100%;
    max-width: 560px;
    gap: 0.72rem;
}

.page-home .matrix-card li {
    min-height: 38px;
    padding: 0.58rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.35;
}

.page-home .home-pillars-head,
.page-home .section-head,
.page-home .reviews-slider {
    scroll-margin-top: calc(var(--site-header-height, 84px) + 20px);
}

@media (max-width: 900px) {
    .page-home .section-head,
    .page-home .home-pillars-head {
        grid-template-columns: minmax(0, 100%);
        gap: 12px;
    }

    .page-home .section-head h2,
    .page-home .split-copy h2,
    .page-home .legacy-preview-copy h2,
    .page-home .hero-copy-compact h1,
    .page-home .matrix-card h3 {
        max-width: none;
    }

    .page-home .check-grid {
        width: min(100%, 640px);
    }
}

@media (max-width: 720px) {
    .page-home .section-head,
    .page-home .home-pillars-head,
    .page-home .split-copy,
    .page-home .legacy-preview-copy,
    .page-home .service-body,
    .page-home .blog-card-body,
    .page-home .matrix-card,
    .page-home .review-card,
    .page-home .counter-card {
        text-align: center;
    }

    .page-home .section-head > div,
    .page-home .home-pillars-copy,
    .page-home .split-copy,
    .page-home .legacy-preview-copy,
    .page-home .service-body,
    .page-home .blog-card-body,
    .page-home .matrix-card {
        justify-items: center;
    }

    .page-home .section-head .eyebrow,
    .page-home .section-head h2,
    .page-home .section-head p,
    .page-home .home-pillars-head .eyebrow,
    .page-home .home-pillars-head h2,
    .page-home .home-pillars-intro {
        margin-inline: auto;
    }

    .page-home .home-pillars-head {
        text-align: center;
    }

    .page-home .matrix-grid {
        grid-template-columns: 1fr;
        width: min(100%, 520px);
    }

    .page-home .matrix-card ul,
    .page-home .country-badges {
        justify-content: center;
    }
}

/* Home typography and alignment refinement by breakpoint */
.page-home .hero-copy-compact {
    width: min(100%, 860px);
    margin-inline: auto;
}

.page-home .hero-copy-compact h1,
.page-home .hero-copy-compact .lead {
    margin-inline: auto;
}

.page-home .pillar-grid-centered,
.page-home .home-featured-grid,
.page-home .home-blog-grid,
.page-home .counter-grid,
.page-home .matrix-grid {
    align-items: stretch;
}

.page-home .pillar-card-centered,
.page-home .service-card,
.page-home .blog-card,
.page-home .matrix-card,
.page-home .counter-card,
.page-home .review-card {
    height: 100%;
}

.page-home .section-head,
.page-home .home-pillars-head {
    width: min(100%, 1040px);
    padding-inline: clamp(4px, 1vw, 10px);
}

.page-home .section-head > div,
.page-home .home-pillars-copy {
    width: min(100%, 760px);
}

.page-home .section-head h2,
.page-home .home-pillars-head h2,
.page-home .split-copy h2,
.page-home .legacy-preview-copy h2,
.page-home .hero-copy-compact h1 {
    letter-spacing: -0.038em;
}

.page-home .section-head p,
.page-home .home-pillars-intro,
.page-home .split-copy p,
.page-home .legacy-preview-copy p,
.page-home .hero-copy-compact .lead,
.page-home .service-body p,
.page-home .blog-card-body p,
.page-home .review-card p,
.page-home .matrix-card li,
.page-home .counter-card span {
    line-height: 1.72;
}

.page-home .service-body,
.page-home .blog-card-body,
.page-home .pillar-card-centered,
.page-home .review-card,
.page-home .matrix-card,
.page-home .counter-card {
    padding-inline: clamp(18px, 2vw, 26px);
}

.page-home .service-body h3,
.page-home .blog-card-body h3,
.page-home .pillar-card-centered h3,
.page-home .matrix-card h3 {
    line-height: 1.18;
    letter-spacing: -0.024em;
}

.page-home .counter-grid {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.page-home .home-focus-rail,
.page-home .home-blog-rail,
.page-home .pillar-grid-centered,
.page-home .matrix-grid,
.page-home .reviews-slider {
    width: min(100%, 1180px);
    margin-inline: auto;
}

@media (min-width: 1201px) {
    .page-home .section-head,
    .page-home .home-pillars-head {
        margin-bottom: 36px;
        gap: 12px;
    }

    .page-home .section-head h2,
    .page-home .home-pillars-head h2,
    .page-home .split-copy h2,
    .page-home .legacy-preview-copy h2 {
        max-width: 19ch;
    }

    .page-home .hero-copy-compact h1 {
        max-width: 14ch;
    }

    .page-home .section-head p,
    .page-home .home-pillars-intro,
    .page-home .split-copy p,
    .page-home .legacy-preview-copy p,
    .page-home .hero-copy-compact .lead {
        max-width: 66ch;
        font-size: 1.04rem;
    }

    .page-home .pillar-grid-centered {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
        gap: 20px;
    }

    .page-home .home-featured-grid,
    .page-home .home-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .page-home .counter-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .page-home .matrix-grid {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
        gap: 22px;
    }
}

@media (min-width: 721px) and (max-width: 1200px) {
    .page-home .section-head,
    .page-home .home-pillars-head {
        width: min(100%, 900px);
        margin-bottom: 30px;
        gap: 12px;
    }

    .page-home .section-head > div,
    .page-home .home-pillars-copy {
        width: min(100%, 680px);
    }

    .page-home .section-head h2,
    .page-home .home-pillars-head h2,
    .page-home .split-copy h2,
    .page-home .legacy-preview-copy h2 {
        max-width: 18ch;
    }

    .page-home .hero-copy-compact h1 {
        max-width: 14ch;
    }

    .page-home .section-head p,
    .page-home .home-pillars-intro,
    .page-home .split-copy p,
    .page-home .legacy-preview-copy p,
    .page-home .hero-copy-compact .lead {
        max-width: 58ch;
        font-size: 1rem;
    }

    .page-home .pillar-grid-centered {
        grid-template-columns: repeat(2, minmax(240px, 320px));
        gap: 18px;
    }

    .page-home .home-featured-grid,
    .page-home .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .page-home .counter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-home .matrix-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 720px) {
    .page-home .section-head,
    .page-home .home-pillars-head {
        width: min(100%, 560px);
        padding-inline: 0;
        margin-bottom: 24px;
        gap: 10px;
    }

    .page-home .section-head > div,
    .page-home .home-pillars-copy {
        width: 100%;
    }

    .page-home .section-head h2,
    .page-home .home-pillars-head h2,
    .page-home .split-copy h2,
    .page-home .legacy-preview-copy h2,
    .page-home .hero-copy-compact h1,
    .page-home .section-head p,
    .page-home .home-pillars-intro,
    .page-home .split-copy p,
    .page-home .legacy-preview-copy p,
    .page-home .hero-copy-compact .lead {
        max-width: 100%;
    }

    .page-home .section-head p,
    .page-home .home-pillars-intro,
    .page-home .split-copy p,
    .page-home .legacy-preview-copy p,
    .page-home .hero-copy-compact .lead {
        font-size: 0.98rem;
        line-height: 1.68;
    }

    .page-home .counter-grid,
    .page-home .home-focus-rail,
    .page-home .home-blog-rail,
    .page-home .pillar-grid-centered,
    .page-home .matrix-grid,
    .page-home .reviews-slider {
        width: 100%;
    }
}

/* Mobile nav button refinement */
@media (max-width: 1000px) {
    .site-header .nav-toggle {
        display: inline-flex !important;
        position: relative;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0;
        width: 52px;
        height: 52px;
        border-radius: 18px;
        border: 1px solid rgba(10, 31, 54, 0.1);
        background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,250,253,0.94));
        box-shadow: 0 14px 28px rgba(7, 28, 49, 0.08);
        overflow: hidden;
    }

    .site-header .nav-toggle::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(214, 179, 110, 0.14), rgba(10, 111, 201, 0.06));
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .site-header .nav-toggle:hover::before,
    .site-header .nav-toggle:focus-visible::before,
    .site-header .nav-toggle.is-open::before {
        opacity: 1;
    }

    .site-header .nav-toggle > span:not(.sr-only) {
        position: absolute;
        left: 50%;
        width: 22px;
        height: 2.4px;
        margin: 0;
        border-radius: 999px;
        background: #0f2842 !important;
        transform-origin: center;
        transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease, width 0.22s ease;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .site-header .nav-toggle > span:nth-child(1) {
        top: 17px;
    }

    .site-header .nav-toggle > span:nth-child(2) {
        top: 24px;
        width: 18px;
    }

    .site-header .nav-toggle > span:nth-child(3) {
        top: 31px;
    }

    .site-header .nav-toggle.is-open > span:nth-child(1) {
        top: 24px;
        transform: translateX(-50%) rotate(45deg);
    }

    .site-header .nav-toggle.is-open > span:nth-child(2) {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.4);
    }

    .site-header .nav-toggle.is-open > span:nth-child(3) {
        top: 24px;
        transform: translateX(-50%) rotate(-45deg);
    }

    .site-header .nav-toggle > span:nth-child(1),
    .site-header .nav-toggle > span:nth-child(2),
    .site-header .nav-toggle > span:nth-child(3) {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .site-header .nav-toggle {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .site-header .nav-toggle > span:nth-child(1) {
        top: 15.5px;
    }

    .site-header .nav-toggle > span:nth-child(2),
    .site-header .nav-toggle.is-open > span:nth-child(1),
    .site-header .nav-toggle.is-open > span:nth-child(3) {
        top: 22.5px;
    }

    .site-header .nav-toggle > span:nth-child(3) {
        top: 29.5px;
    }
}


/* Layout polish · legacy / services / home about */
.page-legacy .legacy-page-layout {
    gap: 44px;
}

.page-legacy .legacy-block-copy,
.page-legacy .legacy-block-copy h2,
.page-legacy .legacy-block-copy p,
.page-legacy .legacy-block-copy .legacy-meta {
    text-align: left;
}

.page-legacy .legacy-block-copy {
    display: grid;
    align-content: start;
    gap: 12px;
}

.page-legacy .legacy-block-copy p {
    margin: 0;
    max-width: 60ch;
    font-size: 0.99rem;
    line-height: 1.72;
}

.page-legacy .legacy-block-copy .legacy-meta {
    margin: 0 0 4px;
}

.page-legacy .section-head.narrow {
    gap: 16px;
    align-items: start;
}

.page-services .section-head.split-title,
.page-service-detail .section-head.split-title {
    align-items: end;
    gap: 24px;
}

.page-services .section-head.split-title > div,
.page-service-detail .section-head.split-title > div {
    max-width: 640px;
}

.page-services .section-head.split-title h2,
.page-service-detail .section-head.split-title h2 {
    max-width: 15ch;
}

.page-services .section-head.split-title p,
.page-service-detail .section-head.split-title p {
    max-width: 42rem;
}

.page-services .service-matrix-shell {
    width: min(1120px, 100%);
    margin-inline: auto;
}

.page-service-detail .detail-grid {
    grid-template-columns: minmax(0, min(760px, 1fr)) minmax(300px, 360px);
    justify-content: center;
    gap: 32px;
}

.page-service-detail .detail-copy {
    padding: 34px 38px;
}

.page-service-detail .detail-copy > * {
    max-width: 64ch;
}

.page-service-detail .detail-copy h2,
.page-service-detail .detail-copy h3,
.page-service-detail .detail-copy h4 {
    max-width: 20ch;
}

.page-service-detail .detail-copy ul,
.page-service-detail .detail-copy ol {
    max-width: 60ch;
}

@media (min-width: 1181px) {
    .page-legacy .legacy-block {
        grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.92fr) minmax(250px, 0.76fr);
        gap: 28px;
    }

    .page-legacy .legacy-block-media-main,
    .page-legacy .legacy-block-copy {
        min-height: clamp(500px, 44vw, 620px);
    }

    .page-legacy .legacy-block-copy {
        padding: 34px 34px 32px;
    }

    .page-legacy .legacy-block-copy h2 {
        font-size: clamp(1.58rem, 1.9vw, 2.14rem);
        line-height: 1.14;
        max-width: 14ch;
    }

    .page-legacy .legacy-block-media-main img {
        min-height: 100%;
        height: 100%;
    }

    .page-legacy .legacy-block-media-side {
        height: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
    }

    .page-legacy .legacy-block-media-side picture {
        height: 100%;
    }

    .page-legacy .legacy-block-media-side img {
        min-height: 0;
        height: 100%;
    }
}

@media (max-width: 1180px) {
    .page-service-detail .detail-grid {
        grid-template-columns: 1fr;
    }

    .page-service-detail .detail-copy > * {
        max-width: none;
    }
}

/* === 2026-04 refinement pass: legacy, related services, footer === */
.page-home .legacy-preview {
    position: relative;
}

.page-home .legacy-preview-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(400px, 1.06fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: stretch;
}

.page-home .legacy-preview-copy {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 1rem;
    max-width: 580px;
    margin-inline: 0;
    text-align: left;
    min-height: 100%;
}

.page-home .legacy-preview-copy .eyebrow {
    margin-bottom: 0;
}

.page-home .legacy-preview-copy h2 {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-home .legacy-preview-copy p {
    margin: 0;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.03rem;
    line-height: 1.78;
}

.page-home .legacy-preview-copy .button {
    justify-self: center;
    margin-top: 0.5rem;
}

.page-home .legacy-preview-stack {
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 20px);
}

.page-home .legacy-preview-stack img {
    width: 100%;
    height: 100%;
    min-height: clamp(320px, 36vw, 460px);
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
}

.page-legacy .story-section {
    align-items: center;
}

.page-legacy .legacy-block-copy {
    display: grid;
    align-content: center;
    gap: 0.95rem;
}

.page-legacy .legacy-block-copy p:last-of-type {
    margin-bottom: 0;
}

.page-legacy .legacy-block-media-side {
    align-self: center;
    align-content: start;
    gap: 16px;
}

.page-legacy .legacy-block-media-side picture {
    aspect-ratio: 1 / 1;
}

.page-legacy .legacy-block-media-side img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 22px;
}

.page-legacy .legacy-block-media-side.kaan picture:first-child {
    grid-column: auto;
}

.page-service-detail .section-head.split-title {
    align-items: end;
    gap: clamp(22px, 3vw, 44px);
}

.page-service-detail .section-head.split-title > div,
.page-service-detail .section-head.split-title > p {
    max-width: 100%;
}

.page-service-detail .section-head.split-title h2 {
    max-width: 16ch;
}

.page-service-detail .section-head.split-title p {
    max-width: 42ch;
}

.page-service-detail .related-services-shell {
    margin-top: 10px;
}

.page-service-detail .related-services-shell .service-card-grid.compact-grid {
    width: 100%;
    margin-inline: auto;
}

.site-footer .footer-grid {
    align-items: start;
    gap: clamp(22px, 2.2vw, 34px);
}

.site-footer .footer-grid > div {
    min-width: 0;
}

.site-footer .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.site-footer .footer-nav-list a,
.site-footer .footer-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.site-footer .footer-nav-list a:hover,
.site-footer .footer-links a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(214, 179, 110, 0.22);
}

@media (max-width: 1180px) {
    .page-home .legacy-preview-grid {
        grid-template-columns: 1fr;
    }

    .page-home .legacy-preview-copy {
        max-width: 760px;
        margin-inline: auto;
        justify-items: center;
        text-align: center;
    }

    .page-home .legacy-preview-copy h2,
    .page-home .legacy-preview-copy p {
        max-width: 100%;
    }

    .page-legacy .legacy-block-media-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 981px) {
    .page-legacy .legacy-block-media-side {
        grid-template-columns: repeat(2, minmax(120px, 188px));
        justify-content: start;
    }

    .page-legacy .legacy-block-media-side.kaan {
        grid-template-columns: repeat(2, minmax(140px, 188px));
    }
}

@media (max-width: 980px) {
    .page-service-detail .section-head.split-title {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .page-home .legacy-preview-copy {
        justify-items: center;
        text-align: center;
    }

    .page-home .legacy-preview-copy .button {
        width: 100%;
        max-width: 280px;
    }

    .page-home .legacy-preview-stack {
        grid-template-columns: 1fr;
    }

    .page-home .legacy-preview-stack img {
        min-height: 260px;
    }

    .page-legacy .legacy-block-media-side,
    .page-legacy .legacy-block-media-side.kaan {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer .footer-nav-list a,
    .site-footer .footer-links a {
        min-height: 42px;
        padding: 9px 12px;
    }
}

.site-footer .footer-link-button {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.site-footer .footer-link-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(214, 179, 110, 0.22);
}

@media (max-width: 640px) {
    .site-footer .footer-link-button {
        min-height: 42px;
        padding: 9px 12px;
    }
}

/* === 2026-04 legacy sizing tuning === */
.page-home .legacy-preview-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.92fr);
    gap: clamp(24px, 3vw, 48px);
}

.page-home .legacy-preview-copy {
    max-width: 500px;
    gap: 0.82rem;
}

.page-home .legacy-preview-copy h2 {
    max-width: 16ch;
    font-size: clamp(1.7rem, 2.45vw, 2.55rem);
    line-height: 1.08;
}

.page-home .legacy-preview-copy p {
    max-width: 48ch;
    font-size: 0.97rem;
    line-height: 1.66;
}

.page-home .legacy-preview-copy .button {
    margin-top: 0.2rem;
}

.page-home .legacy-preview-stack {
    align-self: center;
    gap: 14px;
}

.page-home .legacy-preview-stack img {
    min-height: clamp(220px, 22vw, 290px);
    max-height: 290px;
    border-radius: 22px;
}

.page-legacy .legacy-block {
    align-items: center;
}

.page-legacy .legacy-block-media-side {
    align-self: center;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(104px, 138px));
    gap: 14px;
    max-width: 310px;
    margin-left: auto;
}

.page-legacy .legacy-block-media-side.kaan {
    grid-template-columns: repeat(2, minmax(104px, 138px));
    max-width: 310px;
}

.page-legacy .legacy-block-media-side picture {
    width: 100%;
    max-width: 138px;
}

.page-legacy .legacy-block-media-side img {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
}

@media (max-width: 1180px) {
    .page-home .legacy-preview-copy {
        max-width: 680px;
    }
}

@media (max-width: 980px) {
    .page-home .legacy-preview-stack img {
        max-height: none;
        min-height: 240px;
    }

    .page-legacy .legacy-block-media-side,
    .page-legacy .legacy-block-media-side.kaan {
        max-width: none;
        margin-left: 0;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .page-legacy .legacy-block-media-side picture {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .page-home .legacy-preview-copy h2 {
        font-size: clamp(1.55rem, 6vw, 2.05rem);
    }

    .page-home .legacy-preview-copy p {
        font-size: 0.95rem;
        line-height: 1.62;
    }

    .page-home .legacy-preview-stack img {
        min-height: 230px;
    }
}

/* === 2026-04 step refinement: homepage legacy composition + legacy side thumbs === */
.page-home .legacy-preview-grid {
    grid-template-columns: minmax(0, 1fr);
}

.page-home .legacy-preview-composition {
    max-width: 1180px;
    margin-inline: auto;
    padding: clamp(26px, 3.2vw, 42px);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .legacy-preview-composition > h2 {
    max-width: 17ch;
    margin-bottom: 0.35rem;
}

.page-home .legacy-preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
    gap: clamp(18px, 2.4vw, 32px);
    align-items: center;
}

.page-home .legacy-preview-lead {
    min-width: 0;
}

.page-home .legacy-preview-lead p {
    margin: 0;
    max-width: 46ch;
    font-size: 0.965rem;
    line-height: 1.68;
    color: rgba(255,255,255,0.84);
}

.page-home .legacy-preview-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-self: center;
}

.page-home .legacy-preview-stack picture {
    width: 100%;
}

.page-home .legacy-preview-stack img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 260px;
    object-fit: cover;
    border-radius: 22px;
}

.page-home .legacy-preview-foot {
    display: grid;
    justify-items: start;
    gap: 0.9rem;
    margin-top: 1rem;
}

.page-home .legacy-preview-note {
    margin: 0;
    max-width: 78ch;
    font-size: 0.985rem;
    line-height: 1.72;
    color: rgba(255,255,255,0.88);
}

.page-home .legacy-preview-foot .button {
    justify-self: start;
    margin-top: 0.15rem;
}

.page-legacy .legacy-block-media-side,
.page-legacy .legacy-block-media-side.kaan {
    grid-template-columns: repeat(2, minmax(92px, 132px));
    gap: 14px;
    align-self: center;
    align-content: start;
    justify-content: start;
    max-width: 292px;
    margin-left: auto;
}

.page-legacy .legacy-block-media-side picture,
.page-legacy .legacy-block-media-side.kaan picture {
    width: 100%;
    max-width: 132px;
    aspect-ratio: 1 / 1;
}

.page-legacy .legacy-block-media-side img,
.page-legacy .legacy-block-media-side.kaan img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(10, 31, 54, 0.12);
}

@media (max-width: 1100px) {
    .page-home .legacy-preview-composition > h2,
    .page-home .legacy-preview-lead p,
    .page-home .legacy-preview-note {
        max-width: 100%;
    }

    .page-home .legacy-preview-row {
        grid-template-columns: 1fr;
    }

    .page-home .legacy-preview-foot {
        justify-items: center;
    }

    .page-home .legacy-preview-foot .button {
        justify-self: center;
    }

    .page-home .legacy-preview-composition,
    .page-home .legacy-preview-copy {
        text-align: center;
    }

    .page-home .legacy-preview-lead p,
    .page-home .legacy-preview-note {
        margin-inline: auto;
    }

    .page-legacy .legacy-block-media-side,
    .page-legacy .legacy-block-media-side.kaan {
        margin-left: 0;
        max-width: none;
        justify-content: start;
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }

    .page-legacy .legacy-block-media-side picture,
    .page-legacy .legacy-block-media-side.kaan picture {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .page-home .legacy-preview-composition {
        padding: 22px 18px;
    }

    .page-home .legacy-preview-row {
        gap: 16px;
    }

    .page-home .legacy-preview-lead p {
        font-size: 0.94rem;
        line-height: 1.62;
    }

    .page-home .legacy-preview-note {
        font-size: 0.95rem;
        line-height: 1.64;
    }

    .page-home .legacy-preview-stack {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .page-home .legacy-preview-stack img {
        min-height: 170px;
        max-height: 210px;
        border-radius: 18px;
    }

    .page-legacy .legacy-block-media-side,
    .page-legacy .legacy-block-media-side.kaan {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* === 2026-04 blog embed tools + youtube embeds + legacy desktop restore === */
.admin-inline-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px;
}

.button.button-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.92rem;
}

.embed-shell,
.external-youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(10, 31, 54, 0.08);
    box-shadow: var(--premium-shadow-soft);
}

.embed-shell iframe,
.external-youtube-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.external-youtube-embed {
    margin: 22px 0;
}

.page-legacy .legacy-page-layout {
    gap: 40px;
}

.page-legacy .legacy-block {
    grid-template-columns: minmax(320px, 0.96fr) minmax(360px, 1fr) minmax(220px, 0.78fr);
    gap: 26px;
    align-items: stretch;
}

.page-legacy .legacy-block-media-main,
.page-legacy .legacy-block-copy {
    min-height: clamp(460px, 42vw, 580px);
}

.page-legacy .legacy-block-media-main img {
    min-height: 100%;
    height: 100%;
    object-fit: cover;
}

.page-legacy .legacy-block-copy {
    padding: 32px;
    display: grid;
    align-content: center;
    gap: 12px;
}

.page-legacy .legacy-block-copy h2 {
    max-width: 14ch;
    font-size: clamp(1.7rem, 2.1vw, 2.3rem);
    line-height: 1.12;
}

.page-legacy .legacy-block-copy p {
    max-width: 58ch;
    font-size: 0.98rem;
    line-height: 1.72;
}

.page-legacy .legacy-block-media-side,
.page-legacy .legacy-block-media-side.kaan {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    grid-auto-rows: minmax(96px, 150px);
    gap: 14px;
    align-content: center;
    justify-content: stretch;
    max-width: 300px;
    margin-left: auto;
}

.page-legacy .legacy-block-media-side picture,
.page-legacy .legacy-block-media-side.kaan picture {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
}

.page-legacy .legacy-block-media-side img,
.page-legacy .legacy-block-media-side.kaan img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 14px 30px rgba(10, 31, 54, 0.12);
}

.page-legacy .legacy-block-media-side.kaan picture:first-child {
    grid-column: auto;
}

@media (max-width: 1100px) {
    .page-legacy .legacy-block {
        grid-template-columns: 1fr;
    }

    .page-legacy .legacy-block-media-main,
    .page-legacy .legacy-block-copy {
        min-height: auto;
    }

    .page-legacy .legacy-block-media-side,
    .page-legacy .legacy-block-media-side.kaan {
        max-width: none;
        margin-left: 0;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        grid-auto-rows: minmax(120px, 1fr);
    }
}

@media (max-width: 720px) {
    .admin-inline-editor-actions {
        flex-direction: column;
    }

    .button.button-small {
        width: 100%;
    }

    .page-legacy .legacy-block-media-side,
    .page-legacy .legacy-block-media-side.kaan {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* === 2026-04 homepage legacy single-copy alignment fix === */
.page-home .legacy-preview-composition {
    max-width: 1040px;
    padding: clamp(28px, 3.2vw, 42px);
}

.page-home .legacy-preview-composition > h2 {
    max-width: 14ch;
    font-size: clamp(1.9rem, 2.8vw, 2.7rem);
    line-height: 1.02;
    margin-bottom: 1rem;
}

.page-home .legacy-preview-row {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: clamp(18px, 2.3vw, 30px);
    align-items: center;
}

.page-home .legacy-preview-lead {
    align-items: center;
}

.page-home .legacy-preview-lead p {
    max-width: 42ch;
    font-size: clamp(0.88rem, 0.6vw + 0.7rem, 0.95rem);
    line-height: 1.58;
    color: rgba(255,255,255,0.82);
}

.page-home .legacy-preview-stack {
    max-width: 320px;
    justify-self: end;
    align-self: center;
    gap: 14px;
}

.page-home .legacy-preview-stack img {
    min-height: 180px;
    max-height: 220px;
    border-radius: 20px;
}

.page-home .legacy-preview-foot {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 0;
    justify-items: start;
}

.page-home .legacy-preview-foot .button {
    min-width: 190px;
    min-height: 46px;
    justify-self: start;
}

@media (max-width: 980px) {
    .page-home .legacy-preview-composition,
    .page-home .legacy-preview-copy {
        text-align: center;
    }

    .page-home .legacy-preview-composition > h2,
    .page-home .legacy-preview-lead p {
        max-width: 100%;
        margin-inline: auto;
    }

    .page-home .legacy-preview-row {
        grid-template-columns: 1fr;
    }

    .page-home .legacy-preview-stack {
        max-width: 420px;
        justify-self: center;
    }

    .page-home .legacy-preview-foot {
        justify-items: center;
    }

    .page-home .legacy-preview-foot .button {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .page-home .legacy-preview-composition > h2 {
        font-size: clamp(1.65rem, 7vw, 2.15rem);
    }

    .page-home .legacy-preview-lead p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .page-home .legacy-preview-stack img {
        min-height: 150px;
        max-height: 185px;
    }
}

/* === 2026-04 homepage legacy heading centering fix === */
.page-home .legacy-preview-composition {
    align-items: stretch;
}

.page-home .legacy-preview-copy .eyebrow {
    display: flex;
    justify-content: center;
    align-self: center;
    margin-inline: auto;
}

.page-home .legacy-preview-composition > h2 {
    max-width: min(22ch, 100%);
    margin-inline: auto;
    text-align: center;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

@media (min-width: 981px) {
    .page-home .legacy-preview-composition > h2 {
        max-width: 24ch;
    }
}

@media (max-width: 640px) {
    .page-home .legacy-preview-composition > h2 {
        font-size: clamp(1.45rem, 6.4vw, 1.95rem);
        line-height: 1.1;
    }
}


/* === 2026-04 legacy heading cloud alignment + spread === */
.page-home .legacy-preview-composition > h2 {
    display: block;
    width: min(100%, 760px);
    max-width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-wrap: balance;
}

@media (min-width: 981px) {
    .page-home .legacy-preview-composition {
        justify-items: stretch;
    }

    .page-home .legacy-preview-composition > h2 {
        width: min(100%, 780px);
        max-width: min(100%, 780px);
        font-size: clamp(1.68rem, 2.2vw, 2.36rem);
        line-height: 1.08;
    }

    .page-home .legacy-preview-row {
        margin-top: 0.4rem;
    }
}

/* === 2026-04 final refinement: legacy intro cloud + editorial blog detail === */
.page-home .legacy-preview-composition {
    align-items: stretch;
}

.page-home .legacy-preview-composition > h2 {
    width: 100%;
    max-width: min(24ch, 100%);
    margin-inline: auto;
    text-align: center;
    font-size: clamp(1.7rem, 2.25vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -0.036em;
    text-wrap: balance;
}

.page-home .legacy-preview-copy .eyebrow {
    justify-self: center;
}

.page-home .legacy-preview-row {
    align-items: center;
}

.page-home .legacy-preview-lead p {
    max-width: 43ch;
}

.blog-detail-hero .narrow-page {
    max-width: 920px;
    text-align: center;
}

.blog-detail-hero .lead {
    max-width: 760px;
    margin-inline: auto;
}

.blog-detail-layout {
    grid-template-columns: minmax(0, min(760px, 1fr)) minmax(300px, 360px);
    justify-content: center;
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}

.blog-detail-layout.no-embed {
    grid-template-columns: minmax(0, min(840px, 1fr));
    justify-content: center;
}

.blog-prose {
    padding: clamp(18px, 2vw, 24px);
}

.blog-detail-cover-shell {
    margin-bottom: 28px;
    border-radius: 24px;
    overflow: hidden;
}

.blog-detail-body {
    max-width: 68ch;
    margin-inline: auto;
}

.blog-detail-body > *:first-child {
    margin-top: 0;
}

.blog-detail-body p,
.blog-detail-body li {
    font-size: 1.02rem;
    line-height: 1.82;
    color: var(--text);
}

.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4 {
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-top: 1.6em;
}

.blog-embed-column {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
}

.blog-aside-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow-soft);
}

.blog-aside-head {
    display: grid;
    gap: 4px;
}

.blog-aside-head .eyebrow {
    margin-bottom: 0;
    justify-self: start;
}

.blog-aside-head h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

.blog-aside-media {
    width: 100%;
}

.blog-aside-media .external-youtube-embed,
.blog-aside-media .embed-shell {
    margin: 0;
    border-radius: 20px;
}

.blog-aside-media [data-external-instagram],
.blog-aside-media .external-embed-placeholder,
.blog-aside-media blockquote.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.blog-aside-media-instagram {
    display: grid;
    justify-items: center;
}

@media (max-width: 1180px) {
    .blog-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .blog-detail-layout.no-embed {
        grid-template-columns: 1fr;
    }

    .blog-embed-column {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        align-items: start;
    }

    .blog-detail-body {
        max-width: 72ch;
    }
}

@media (max-width: 720px) {
    .page-home .legacy-preview-composition > h2 {
        font-size: clamp(1.45rem, 6vw, 1.9rem);
        max-width: 100%;
    }

    .blog-prose {
        padding: 16px;
    }

    .blog-detail-cover-shell {
        margin-bottom: 20px;
        border-radius: 20px;
    }

    .blog-detail-body p,
    .blog-detail-body li {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .blog-embed-column {
        grid-template-columns: 1fr;
    }

    .blog-aside-card {
        padding: 14px;
        border-radius: 20px;
    }
}

/* === 2026-04 legacy intro h3 composition refinement === */
.page-home .legacy-preview-composition {
    max-width: 1120px;
    justify-items: stretch;
}

.page-home .legacy-preview-copy .eyebrow {
    justify-self: center;
    margin-bottom: 0.9rem;
}

.page-home .legacy-preview-row-balanced {
    grid-template-columns: minmax(0, 1.02fr) minmax(250px, 0.88fr);
    gap: clamp(16px, 2vw, 24px);
    align-items: center;
}

.page-home .legacy-preview-copyblock {
    display: grid;
    align-content: center;
    gap: 0.7rem;
    min-height: 100%;
    max-width: 100%;
}

.page-home .legacy-preview-title {
    margin: 0;
    font-size: clamp(1.34rem, 1.45vw, 1.78rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-align: center;
    max-width: 18ch;
    margin-inline: auto;
}

.page-home .legacy-preview-text {
    margin: 0;
    font-size: clamp(0.92rem, 0.42vw + 0.8rem, 1rem);
    line-height: 1.66;
    color: rgba(255,255,255,0.84);
    text-wrap: pretty;
    max-width: 43ch;
    margin-inline: auto;
    text-align: center;
}

.page-home .legacy-preview-stack {
    max-width: 330px;
    justify-self: center;
    align-self: center;
    gap: 12px;
}

.page-home .legacy-preview-stack img {
    min-height: clamp(180px, 18vw, 236px);
    max-height: 236px;
    border-radius: 20px;
}

.page-home .legacy-preview-foot {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    justify-items: center;
}

.page-home .legacy-preview-foot .button {
    justify-self: center;
}

@media (min-width: 981px) {
    .page-home .legacy-preview-row-balanced {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    }

    .page-home .legacy-preview-copyblock {
        padding-inline: clamp(4px, 1vw, 10px);
    }

    .page-home .legacy-preview-title,
    .page-home .legacy-preview-text {
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    .page-home .legacy-preview-row-balanced {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-home .legacy-preview-copyblock {
        justify-items: center;
    }

    .page-home .legacy-preview-stack {
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .page-home .legacy-preview-title {
        font-size: clamp(1.18rem, 5.4vw, 1.48rem);
        line-height: 1.16;
    }

    .page-home .legacy-preview-text {
        font-size: 0.93rem;
        line-height: 1.6;
    }

    .page-home .legacy-preview-stack {
        max-width: 100%;
        gap: 10px;
    }

    .page-home .legacy-preview-stack img {
        min-height: 146px;
        max-height: 186px;
        border-radius: 18px;
    }
}

/* === 2026-04 legacy text micro-alignment === */
@media (min-width: 981px) {
    .page-home .legacy-preview-row-balanced {
        grid-template-columns: minmax(0, 1.06fr) minmax(250px, 0.9fr);
        gap: clamp(10px, 1.35vw, 16px);
        align-items: center;
    }

    .page-home .legacy-preview-copyblock {
        justify-self: end;
        width: min(100%, 520px);
        gap: 0.56rem;
        padding-inline: 0;
    }

    .page-home .legacy-preview-title {
        max-width: 17ch;
        font-size: clamp(1.28rem, 1.18vw, 1.64rem);
        line-height: 1.1;
    }

    .page-home .legacy-preview-text {
        max-width: 41ch;
        margin-inline: auto 0;
        font-size: clamp(0.9rem, 0.32vw + 0.8rem, 0.97rem);
        line-height: 1.58;
        text-align: left;
    }

    .page-home .legacy-preview-stack {
        max-width: 344px;
        justify-self: start;
        gap: 10px;
    }

    .page-home .legacy-preview-stack img {
        min-height: clamp(184px, 16vw, 220px);
        max-height: 220px;
    }
}

/* === 2026-04 legacy hero alignment polish === */
.page-home .legacy-preview-composition {
    gap: clamp(14px, 1.8vw, 22px);
}

.page-home .legacy-preview-copy .eyebrow {
    justify-self: start;
    margin-bottom: clamp(6px, 0.7vw, 12px);
}

.page-home .legacy-preview-row-balanced {
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.98fr);
    gap: clamp(22px, 3vw, 40px);
    align-items: center;
}

.page-home .legacy-preview-copyblock {
    justify-self: stretch;
    width: min(100%, 640px);
    gap: clamp(12px, 1.1vw, 18px);
    align-content: center;
}

.page-home .legacy-preview-title {
    margin: 0;
    max-width: 13.5ch;
    margin-inline: 0;
    text-align: left;
    font-size: clamp(1.9rem, 2.55vw, 3.05rem);
    line-height: 1.34;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.page-home .legacy-preview-text {
    margin: 0;
    max-width: 41ch;
    margin-inline: 0;
    text-align: left;
    font-size: clamp(0.98rem, 0.48vw + 0.9rem, 1.15rem);
    line-height: 1.66;
    color: rgba(255,255,255,0.88);
}

.page-home .legacy-preview-stack {
    width: min(100%, 480px);
    max-width: none;
    justify-self: end;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.4vw, 18px);
    align-items: center;
}

.page-home .legacy-preview-stack picture {
    display: block;
}

.page-home .legacy-preview-stack img {
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: 0.88 / 1;
    object-fit: cover;
    border-radius: 24px;
}

.page-home .legacy-preview-foot {
    margin-top: clamp(6px, 1vw, 14px);
    padding-top: 0;
    justify-items: start;
}

.page-home .legacy-preview-foot .button {
    justify-self: start;
}

@media (max-width: 1100px) {
    .page-home .legacy-preview-row-balanced {
        grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.92fr);
        gap: clamp(18px, 2.3vw, 28px);
    }

    .page-home .legacy-preview-title {
        font-size: clamp(1.6rem, 2.35vw, 2.3rem);
        max-width: 15ch;
    }

    .page-home .legacy-preview-text {
        max-width: 38ch;
        font-size: clamp(0.96rem, 0.34vw + 0.88rem, 1.03rem);
    }

    .page-home .legacy-preview-stack {
        width: min(100%, 410px);
    }
}

@media (max-width: 980px) {
    .page-home .legacy-preview-copy .eyebrow,
    .page-home .legacy-preview-foot,
    .page-home .legacy-preview-foot .button {
        justify-self: center;
    }

    .page-home .legacy-preview-row-balanced {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .page-home .legacy-preview-copyblock {
        width: min(100%, 680px);
        justify-self: center;
    }

    .page-home .legacy-preview-title,
    .page-home .legacy-preview-text {
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
    }

    .page-home .legacy-preview-title {
        font-size: clamp(1.35rem, 5vw, 2rem);
        line-height: 1.24;
    }

    .page-home .legacy-preview-text {
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .page-home .legacy-preview-stack {
        width: min(100%, 440px);
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .page-home .legacy-preview-title {
        font-size: clamp(1.2rem, 5.8vw, 1.56rem);
    }

    .page-home .legacy-preview-text {
        font-size: 0.94rem;
    }

    .page-home .legacy-preview-stack {
        gap: 10px;
        width: 100%;
    }

    .page-home .legacy-preview-stack img {
        border-radius: 18px;
    }
}

/* === 2026-04 strict legacy home layout: equal columns, balanced text/image height === */
.page-home .legacy-preview-composition {
    display: grid;
    gap: clamp(14px, 1.6vw, 22px);
}

.page-home .legacy-preview-copy .eyebrow {
    justify-self: start;
    margin-bottom: 0;
}

.page-home .legacy-preview-row-balanced {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.96fr);
    gap: clamp(18px, 2.2vw, 30px);
    align-items: stretch;
}

.page-home .legacy-preview-copyblock {
    min-width: 0;
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(12px, 1.05vw, 18px);
    align-self: stretch;
}

.page-home .legacy-preview-title {
    margin: 0;
    max-width: 15ch;
    font-size: clamp(1.55rem, 2vw, 2.4rem);
    line-height: 1.18;
    letter-spacing: -0.035em;
    text-align: left;
    text-wrap: balance;
}

.page-home .legacy-preview-text {
    margin: 0;
    max-width: 46ch;
    font-size: clamp(0.96rem, 0.42vw + 0.86rem, 1.08rem);
    line-height: 1.68;
    color: rgba(255,255,255,0.88);
    text-align: left;
    text-wrap: pretty;
}

.page-home .legacy-preview-stack {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.2vw, 16px);
    align-items: stretch;
    align-self: stretch;
    min-height: 100%;
}

.page-home .legacy-preview-stack picture {
    display: block;
    height: 100%;
}

.page-home .legacy-preview-stack img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 24px;
}

.page-home .legacy-preview-foot {
    justify-items: start;
    margin-top: 0;
    padding-top: 0;
}

.page-home .legacy-preview-foot .button {
    justify-self: start;
}

@media (max-width: 1100px) {
    .page-home .legacy-preview-row-balanced {
        grid-template-columns: minmax(0, 1.04fr) minmax(270px, 0.92fr);
        gap: 20px;
    }

    .page-home .legacy-preview-title {
        max-width: 16ch;
        font-size: clamp(1.42rem, 1.8vw, 2rem);
    }

    .page-home .legacy-preview-text {
        max-width: 42ch;
        font-size: clamp(0.94rem, 0.34vw + 0.84rem, 1rem);
    }
}

@media (max-width: 980px) {
    .page-home .legacy-preview-copy .eyebrow,
    .page-home .legacy-preview-foot,
    .page-home .legacy-preview-foot .button {
        justify-self: center;
    }

    .page-home .legacy-preview-row-balanced {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .page-home .legacy-preview-copyblock {
        justify-self: center;
        align-items: center;
        text-align: center;
    }

    .page-home .legacy-preview-title,
    .page-home .legacy-preview-text {
        max-width: 100%;
        text-align: center;
    }

    .page-home .legacy-preview-title {
        font-size: clamp(1.35rem, 4.8vw, 2rem);
        line-height: 1.2;
    }

    .page-home .legacy-preview-text {
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .page-home .legacy-preview-stack {
        width: min(100%, 460px);
        justify-self: center;
        min-height: auto;
    }

    .page-home .legacy-preview-stack picture {
        height: auto;
    }

    .page-home .legacy-preview-stack img {
        height: auto;
        aspect-ratio: 0.9 / 1;
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .page-home .legacy-preview-title {
        font-size: clamp(1.18rem, 5.8vw, 1.52rem);
    }

    .page-home .legacy-preview-text {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .page-home .legacy-preview-stack {
        gap: 10px;
    }

    .page-home .legacy-preview-stack img {
        min-height: 150px;
        border-radius: 18px;
    }
}

/* === 2026-04 final legacy home emergency polish === */
.page-home .legacy-preview-composition {
    max-width: min(1260px, calc(100vw - 40px));
    padding: clamp(26px, 2.7vw, 38px) clamp(22px, 2.6vw, 34px);
}

.page-home .legacy-preview-copy .eyebrow {
    justify-self: start;
    margin-bottom: clamp(6px, 0.6vw, 10px);
}

.page-home .legacy-preview-row-balanced {
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.96fr);
    gap: clamp(10px, 1.1vw, 14px);
    align-items: stretch;
}

.page-home .legacy-preview-copyblock {
    width: min(100%, 720px);
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(10px, 0.9vw, 14px);
    padding-right: clamp(2px, 0.4vw, 6px);
}

.page-home .legacy-preview-title {
    max-width: 18ch;
    margin: 0;
    text-align: left;
    font-size: clamp(1.34rem, 1.28vw, 1.82rem);
    line-height: 1.42;
    letter-spacing: -0.03em;
}

.page-home .legacy-preview-text {
    max-width: 48ch;
    margin: 0;
    text-align: left;
    font-size: clamp(0.92rem, 0.28vw + 0.84rem, 1rem);
    line-height: 1.72;
    color: rgba(255,255,255,0.86);
}

.page-home .legacy-preview-stack {
    width: min(100%, 440px);
    justify-self: start;
    align-self: center;
    gap: 12px;
    min-height: auto;
}

.page-home .legacy-preview-stack picture {
    height: auto;
}

.page-home .legacy-preview-stack img {
    height: auto;
    min-height: 0;
    max-height: 258px;
    aspect-ratio: 0.9 / 1;
    object-fit: cover;
    border-radius: 22px;
}

.page-home .legacy-preview-foot {
    justify-items: start;
    margin-top: 8px;
}

@media (max-width: 1180px) {
    .page-home .legacy-preview-row-balanced {
        grid-template-columns: minmax(0, 1.16fr) minmax(270px, 0.94fr);
        gap: 12px;
    }

    .page-home .legacy-preview-title {
        max-width: 19ch;
        font-size: clamp(1.26rem, 1.55vw, 1.62rem);
    }

    .page-home .legacy-preview-text {
        max-width: 44ch;
        font-size: clamp(0.91rem, 0.2vw + 0.84rem, 0.97rem);
    }

    .page-home .legacy-preview-stack {
        width: min(100%, 390px);
    }

    .page-home .legacy-preview-stack img {
        max-height: 232px;
    }
}

@media (max-width: 980px) {
    .page-home .legacy-preview-composition {
        max-width: min(100%, 760px);
    }

    .page-home .legacy-preview-copy .eyebrow,
    .page-home .legacy-preview-foot,
    .page-home .legacy-preview-foot .button {
        justify-self: center;
    }

    .page-home .legacy-preview-row-balanced {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-home .legacy-preview-copyblock {
        width: min(100%, 640px);
        align-items: center;
        text-align: center;
        padding-right: 0;
    }

    .page-home .legacy-preview-title,
    .page-home .legacy-preview-text {
        max-width: 100%;
        text-align: center;
    }

    .page-home .legacy-preview-title {
        font-size: clamp(1.24rem, 4.8vw, 1.72rem);
        line-height: 1.28;
    }

    .page-home .legacy-preview-text {
        font-size: 0.96rem;
        line-height: 1.64;
    }

    .page-home .legacy-preview-stack {
        width: min(100%, 430px);
        justify-self: center;
    }

    .page-home .legacy-preview-stack img {
        max-height: none;
        min-height: 176px;
    }
}

@media (max-width: 640px) {
    .page-home .legacy-preview-composition {
        padding: 22px 18px;
    }

    .page-home .legacy-preview-title {
        font-size: clamp(1.12rem, 5.2vw, 1.42rem);
        line-height: 1.3;
    }

    .page-home .legacy-preview-text {
        font-size: 0.93rem;
        line-height: 1.62;
    }

    .page-home .legacy-preview-stack {
        width: 100%;
        gap: 10px;
    }

    .page-home .legacy-preview-stack img {
        min-height: 150px;
        border-radius: 18px;
    }
}

/* === 2026-04 final legacy text tuning based on approved visual direction === */
.page-home .legacy-preview-title {
    max-width: 26ch;
    font-size: clamp(1.22rem, 1.02vw + 0.96rem, 1.56rem);
    line-height: 1.34;
}

.page-home .legacy-preview-text,
.page-home .legacy-preview-lead p {
    max-width: 60ch;
}

@media (max-width: 1180px) {
    .page-home .legacy-preview-title {
        max-width: 255ch;
        font-size: clamp(1.40rem, 1.44vw, 1.40rem);
    }
}

@media (max-width: 980px) {
    .page-home .legacy-preview-title {
        max-width: 100%;
        font-size: clamp(1.24rem, 4.8vw, 1.72rem);
    }

    .page-home .legacy-preview-text,
    .page-home .legacy-preview-lead p {
        max-width: 100%;
    }
}

/* === 2026-04 user-approved legacy title + centered CTA === */
.page-home .legacy-preview-title {
    max-width: 34ch;
    font-size: clamp(1.22rem, 1.02vw + 0.96rem, 1.56rem);
    line-height: 1.32;
}

.page-home .legacy-preview-foot {
    width: 100%;
    display: grid;
    justify-items: center;
}

.page-home .legacy-preview-foot .button {
    justify-self: center;
    margin-inline: auto;
}

@media (max-width: 980px) {
    .page-home .legacy-preview-title {
        max-width: 100%;
    }
}

/* === 2026-04 stability + polish batch === */
.page-services .section-head.split-title,
.page-service-detail .section-head.split-title {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
    gap: clamp(14px, 1.8vw, 22px);
    align-items: center;
}

.page-services .section-head.split-title > div,
.page-service-detail .section-head.split-title > div {
    max-width: 760px;
}

.page-services .section-head.split-title h2,
.page-service-detail .section-head.split-title h2 {
    max-width: 18ch;
    margin-bottom: 0;
}

.page-services .section-head.split-title p,
.page-service-detail .section-head.split-title p {
    max-width: 46ch;
    margin: 0;
    align-self: center;
    line-height: 1.68;
}

.page-service-detail .related-services-shell {
    margin-top: 4px;
}

.page-legacy .section-dark .section-head.narrow {
    max-width: 960px;
    margin-inline: auto;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    gap: 12px;
    text-align: center;
    justify-items: center;
}

.page-legacy .section-dark .section-head.narrow h2 {
    max-width: 18ch;
}

.page-legacy .section-dark .section-head.narrow p {
    max-width: 64ch;
    margin: 0;
    color: rgba(255,255,255,0.84);
}

.footer-brand img {
    width: 104px !important;
    filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.28));
}

@media (max-width: 980px) {
    .page-services .section-head.split-title,
    .page-service-detail .section-head.split-title {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .page-services .section-head.split-title p,
    .page-service-detail .section-head.split-title p {
        max-width: 100%;
        justify-self: center;
        text-align: center;
    }

    .page-legacy .section-dark .section-head.narrow {
        padding: 22px 18px;
    }

    .footer-brand img {
        width: 92px !important;
    }
}

/* === 2026-04 premium refinement pass: contact, services, legacy closing, footer, blog figures === */
.page-contact .contact-layout {
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: stretch;
}

.page-contact .contact-cards {
    display: grid;
    gap: 18px;
    align-content: start;
}

.page-contact .contact-card,
.page-contact .contact-form-card {
    border-radius: 30px;
    border: 1px solid rgba(10,31,54,.08);
    box-shadow: 0 24px 56px rgba(10,31,54,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,253,.98));
}

.page-contact .contact-card {
    padding: 24px;
}

.page-contact .contact-link-card a {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(10,31,54,.035);
    border: 1px solid rgba(10,31,54,.06);
}

.page-contact .contact-form-card {
    padding: clamp(24px, 3vw, 34px);
}

.page-contact .contact-form .form-row {
    gap: 16px;
}

.page-contact .contact-form input,
.page-contact .contact-form select,
.page-contact .contact-form textarea {
    border-radius: 16px;
    border: 1px solid rgba(10,31,54,.12);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(10,31,54,.04);
}

.page-contact .map-shell {
    border-radius: 32px;
    box-shadow: 0 24px 54px rgba(10,31,54,.1);
}

.legacy-closing-section {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,247,251,.98));
}

.page-legacy .legacy-closing-shell {
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(28px, 3vw, 42px);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,251,254,1));
    border: 1px solid rgba(10,31,54,.08);
    box-shadow: 0 26px 62px rgba(10,31,54,.08);
    text-align: center;
    gap: 18px;
}

.page-legacy .legacy-closing-shell .eyebrow {
    margin-inline: auto;
}

.page-legacy .legacy-closing-shell h2 {
    max-width: 18ch;
    margin-inline: auto;
}

.page-legacy .legacy-closing-shell p {
    max-width: 62ch;
    margin-inline: auto;
    color: var(--muted);
}

.premium-split-head {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
}

.premium-split-head > div {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.premium-split-head h2 {
    max-width: 18ch;
}

.premium-split-head p {
    max-width: 58ch;
    margin-inline: auto;
}

.page-service-detail .related-services-head h2,
.page-services .services-matrix-head h2 {
    max-width: 22ch;
}

.site-footer .footer-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
    gap: clamp(22px, 2vw, 30px);
    align-items: start;
}

.site-footer .footer-brand {
    align-items: center;
}

.site-footer .footer-brand img {
    width: 96px !important;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.18));
}

.site-footer .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.site-footer .footer-nav-list li {
    min-width: 0;
}

.site-footer .footer-nav-list a,
.site-footer .footer-nav-list .footer-link-button {
    min-height: 50px;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.1);
}

.site-footer .footer-nav-list a::after,
.site-footer .footer-nav-list .footer-link-button::after {
    display: none;
}

.site-footer .footer-links a:hover,
.site-footer .footer-nav-list a:hover,
.site-footer .footer-nav-list .footer-link-button:hover {
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.07));
}

.blog-detail-body .editor-figure,
.blog-detail-body figure.editor-figure {
    display: block;
    margin: 1rem 0 1.4rem;
}

.blog-detail-body .editor-figure img,
.blog-detail-body figure.editor-figure img {
    display: block;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(10,31,54,.12);
}

.blog-detail-body .editor-figure-left,
.blog-detail-body figure.editor-figure-left {
    float: left;
    clear: none;
    margin: 0.4rem 1.4rem 1rem 0;
    max-width: min(46%, 360px);
}

.blog-detail-body .editor-figure-right,
.blog-detail-body figure.editor-figure-right {
    float: right;
    clear: none;
    margin: 0.4rem 0 1rem 1.4rem;
    max-width: min(46%, 360px);
}

.blog-detail-body .editor-figure-center,
.blog-detail-body figure.editor-figure-center {
    float: none;
    max-width: 100%;
    text-align: center;
}

.blog-detail-body::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 1100px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .page-contact .contact-layout {
        grid-template-columns: 1fr;
    }

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

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

    .blog-detail-body .editor-figure-left,
    .blog-detail-body .editor-figure-right,
    .blog-detail-body figure.editor-figure-left,
    .blog-detail-body figure.editor-figure-right {
        float: none;
        max-width: 100%;
        margin: 1rem 0 1.2rem;
    }
}

@media (max-width: 640px) {
    .site-footer .footer-nav-list {
        grid-template-columns: 1fr;
    }
}

/* === 2026-04 TinyMCE frontend image classes === */
.blog-detail-body img.editor-image-left,
.detail-copy img.editor-image-left,
.prose-block img.editor-image-left {
    float: left;
    clear: none;
    max-width: min(46%, 360px);
    margin: 0.45rem 1.4rem 1rem 0;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(10,31,54,.12);
}

.blog-detail-body img.editor-image-right,
.detail-copy img.editor-image-right,
.prose-block img.editor-image-right {
    float: right;
    clear: none;
    max-width: min(46%, 360px);
    margin: 0.45rem 0 1rem 1.4rem;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(10,31,54,.12);
}

.blog-detail-body img.editor-image-center,
.detail-copy img.editor-image-center,
.prose-block img.editor-image-center {
    display: block;
    max-width: min(100%, 760px);
    margin: 1rem auto 1.2rem;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(10,31,54,.12);
}

.blog-detail-body::after,
.detail-copy::after,
.prose-block::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 980px) {
    .blog-detail-body img.editor-image-left,
    .blog-detail-body img.editor-image-right,
    .detail-copy img.editor-image-left,
    .detail-copy img.editor-image-right,
    .prose-block img.editor-image-left,
    .prose-block img.editor-image-right {
        float: none;
        display: block;
        max-width: 100%;
        margin: 1rem auto 1.2rem;
    }
}

/* === 2026-04 final premium pass: page symmetry, services, contact, legacy closing, footer === */
.page-hero > .container,
.page-hero > .narrow-page {
    text-align: center;
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero .lead {
    margin-inline: auto;
}

.page-hero h1 {
    max-width: 18ch;
    text-wrap: balance;
}

.page-hero .lead {
    max-width: 68ch;
}

.page-services .services-matrix-head,
.page-service-detail .related-services-head,
.page-home .section-head.split-title,
.page-blog-detail .section-head.split-title {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
}

.page-services .services-matrix-head > div,
.page-service-detail .related-services-head > div,
.page-services .services-matrix-head > p,
.page-service-detail .related-services-head > p {
    max-width: 72ch;
}

.page-services .services-matrix-head h2,
.page-service-detail .related-services-head h2 {
    max-width: 22ch;
    margin-inline: auto;
}

.page-contact .contact-layout {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 3vw, 38px);
    align-items: stretch;
}

.page-contact .contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.page-contact .contact-card,
.page-contact .contact-form-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,253,0.96));
    border: 1px solid rgba(10,31,54,0.08);
    box-shadow: 0 22px 54px rgba(10,31,54,0.08);
    border-radius: 28px;
}

.page-contact .contact-form-card {
    padding: clamp(24px, 2.6vw, 38px);
}

.page-contact .contact-form-card h2,
.page-contact .contact-card h2 {
    letter-spacing: -0.03em;
}

.page-legacy .legacy-closing-section {
    background: transparent;
}

.page-legacy .legacy-closing-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,254,0.96));
    border: 1px solid rgba(10,31,54,0.07);
    box-shadow: 0 26px 64px rgba(10,31,54,0.08);
    border-radius: 34px;
    padding: clamp(30px, 4vw, 52px);
    justify-items: center;
    text-align: center;
    gap: 16px;
}

.page-legacy .legacy-closing-shell .eyebrow {
    background: rgba(21,59,99,0.08);
    color: var(--primary-2);
}

.page-legacy .legacy-closing-shell h2 {
    max-width: 20ch;
    margin-inline: auto;
}

.page-legacy .legacy-closing-shell p {
    max-width: 72ch;
    margin-inline: auto;
    color: var(--muted);
}

.site-footer .footer-grid {
    grid-template-columns: minmax(240px, 1.1fr) minmax(220px, 0.95fr) minmax(300px, 1.15fr) minmax(220px, 0.9fr);
    gap: clamp(22px, 2.4vw, 34px);
    align-items: start;
}

.site-footer .footer-grid > div {
    display: grid;
    align-content: start;
    gap: 14px;
}

.site-footer .footer-brand img {
    width: 78px;
}

.site-footer .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(145px, 1fr));
    gap: 12px;
}

.site-footer .footer-nav-list a,
.site-footer .footer-nav-list .footer-link-button {
    min-height: 46px;
    justify-content: flex-start;
    padding: 11px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
}

.blog-detail-body::after,
.detail-copy::after,
.post-content::after {
    content: '';
    display: block;
    clear: both;
}

.blog-detail-body .editor-figure-left,
.blog-detail-body figure.editor-figure-left,
.blog-detail-body img.alignleft,
.detail-copy .editor-figure-left,
.detail-copy figure.editor-figure-left,
.detail-copy img.alignleft,
.post-content .editor-figure-left,
.post-content figure.editor-figure-left,
.post-content img.alignleft {
    float: left !important;
    width: min(46%, 420px);
    margin: 8px 24px 18px 0 !important;
    clear: none !important;
}

.blog-detail-body .editor-figure-right,
.blog-detail-body figure.editor-figure-right,
.blog-detail-body img.alignright,
.detail-copy .editor-figure-right,
.detail-copy figure.editor-figure-right,
.detail-copy img.alignright,
.post-content .editor-figure-right,
.post-content figure.editor-figure-right,
.post-content img.alignright {
    float: right !important;
    width: min(46%, 420px);
    margin: 8px 0 18px 24px !important;
    clear: none !important;
}

.blog-detail-body .editor-figure-left img,
.blog-detail-body .editor-figure-right img,
.detail-copy .editor-figure-left img,
.detail-copy .editor-figure-right img,
.post-content .editor-figure-left img,
.post-content .editor-figure-right img {
    width: 100%;
    height: auto;
}

@media (max-width: 1180px) {
    .page-contact .contact-layout,
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-contact .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .page-services .services-matrix-head,
    .page-service-detail .related-services-head {
        gap: 10px;
    }

    .page-contact .contact-layout,
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .blog-detail-body .editor-figure-left,
    .blog-detail-body figure.editor-figure-left,
    .blog-detail-body img.alignleft,
    .blog-detail-body .editor-figure-right,
    .blog-detail-body figure.editor-figure-right,
    .blog-detail-body img.alignright,
    .detail-copy .editor-figure-left,
    .detail-copy figure.editor-figure-left,
    .detail-copy img.alignleft,
    .detail-copy .editor-figure-right,
    .detail-copy figure.editor-figure-right,
    .detail-copy img.alignright,
    .post-content .editor-figure-left,
    .post-content figure.editor-figure-left,
    .post-content img.alignleft,
    .post-content .editor-figure-right,
    .post-content figure.editor-figure-right,
    .post-content img.alignright {
        float: none !important;
        width: 100%;
        margin: 12px 0 18px !important;
    }
}

@media (max-width: 640px) {
    .site-footer .footer-nav-list {
        grid-template-columns: 1fr;
    }
}


/* === 2026-04 elite pass: contact, services head, footer symmetry, rich media floats === */
.page-contact .contact-layout {
    grid-template-columns: minmax(360px, 0.96fr) minmax(0, 1.04fr);
    gap: clamp(28px, 3.2vw, 46px);
    align-items: stretch;
}

.page-contact .contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
}

.page-contact .contact-cards > :first-child {
    grid-column: 1 / -1;
    padding: clamp(26px, 2.4vw, 34px);
    background: linear-gradient(145deg, rgba(7,28,49,1), rgba(15,47,78,.96));
    color: #fff;
    box-shadow: 0 24px 64px rgba(7,28,49,.22);
}

.page-contact .contact-cards > :first-child h2,
.page-contact .contact-cards > :first-child p,
.page-contact .contact-cards > :first-child a,
.page-contact .contact-cards > :first-child span {
    color: inherit;
}

.page-contact .contact-cards > :first-child a {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

.page-contact .contact-card,
.page-contact .contact-form-card {
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,253,.96));
    border: 1px solid rgba(10,31,54,.08);
    box-shadow: 0 22px 54px rgba(10,31,54,.08);
}

.page-contact .contact-card {
    padding: 22px;
}

.page-contact .contact-card h2,
.page-contact .contact-form-card h2 {
    margin-bottom: 8px;
    font-size: clamp(1.16rem, 1.1vw + .9rem, 1.5rem);
    letter-spacing: -.03em;
}

.page-contact .contact-link-card a {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(10,31,54,.035);
    border: 1px solid rgba(10,31,54,.06);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.page-contact .contact-link-card a:hover {
    transform: translateY(-1px);
    background: rgba(10,31,54,.055);
    box-shadow: 0 10px 24px rgba(10,31,54,.06);
}

.page-contact .contact-form-card {
    padding: clamp(28px, 3vw, 42px);
    position: relative;
    overflow: hidden;
}

.page-contact .contact-form-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(214,179,110,.9), rgba(21,59,99,.9));
}

.page-contact .contact-form {
    display: grid;
    gap: 14px;
}

.page-contact .contact-form .form-row {
    gap: 16px;
}

.page-contact .contact-form input,
.page-contact .contact-form select,
.page-contact .contact-form textarea {
    border-radius: 16px;
    border: 1px solid rgba(10,31,54,.12);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(10,31,54,.04);
    padding: 14px 15px;
}

.page-contact .map-shell {
    border-radius: 32px;
    box-shadow: 0 26px 60px rgba(10,31,54,.1);
    overflow: hidden;
}

.page-services .services-matrix-head,
.page-service-detail .related-services-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
    gap: 10px;
    max-width: 920px;
    margin-inline: auto;
    align-items: center;
}

.page-services .services-matrix-head > div,
.page-service-detail .related-services-head > div {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 720px;
}

.page-services .services-matrix-head > p,
.page-service-detail .related-services-head > p {
    max-width: 62ch;
    margin: 0 auto;
    text-align: center;
}

.page-services .services-matrix-head h2,
.page-service-detail .related-services-head h2 {
    max-width: 20ch;
    margin: 0 auto;
}

.site-footer .footer-grid {
    grid-template-columns: minmax(260px, 1.05fr) minmax(220px, .95fr) minmax(320px, 1.1fr) minmax(220px, .9fr);
    gap: clamp(26px, 2.6vw, 38px);
    align-items: start;
}

.site-footer .footer-grid > div {
    display: grid;
    align-content: start;
    gap: 14px;
}

.site-footer .footer-brand {
    align-items: center;
}

.site-footer .footer-brand img {
    width: 104px !important;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.22));
}

.site-footer .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.site-footer .footer-nav-list li {
    min-width: 0;
}

.site-footer .footer-nav-list a,
.site-footer .footer-nav-list .footer-link-button {
    min-height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.site-footer .footer-nav-list a:hover,
.site-footer .footer-nav-list .footer-link-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
    border-color: rgba(214,179,110,.2);
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
}

.blog-detail-body figure[style*="float:left"],
.detail-copy figure[style*="float:left"],
.post-content figure[style*="float:left"],
.blog-detail-body img[style*="float:left"],
.detail-copy img[style*="float:left"],
.post-content img[style*="float:left"],
.blog-detail-body figure[style*="float: left"],
.detail-copy figure[style*="float: left"],
.post-content figure[style*="float: left"],
.blog-detail-body img[style*="float: left"],
.detail-copy img[style*="float: left"],
.post-content img[style*="float: left"],
.blog-detail-body .image-style-align-left,
.detail-copy .image-style-align-left,
.post-content .image-style-align-left,
.blog-detail-body figure.image.align-left,
.detail-copy figure.image.align-left,
.post-content figure.image.align-left {
    float: left !important;
    clear: none !important;
    max-width: min(46%, 380px);
    margin: .45rem 1.4rem 1rem 0 !important;
}

.blog-detail-body figure[style*="float:right"],
.detail-copy figure[style*="float:right"],
.post-content figure[style*="float:right"],
.blog-detail-body img[style*="float:right"],
.detail-copy img[style*="float:right"],
.post-content img[style*="float:right"],
.blog-detail-body figure[style*="float: right"],
.detail-copy figure[style*="float: right"],
.post-content figure[style*="float: right"],
.blog-detail-body img[style*="float: right"],
.detail-copy img[style*="float: right"],
.post-content img[style*="float: right"],
.blog-detail-body .image-style-align-right,
.detail-copy .image-style-align-right,
.post-content .image-style-align-right,
.blog-detail-body figure.image.align-right,
.detail-copy figure.image.align-right,
.post-content figure.image.align-right {
    float: right !important;
    clear: none !important;
    max-width: min(46%, 380px);
    margin: .45rem 0 1rem 1.4rem !important;
}

.blog-detail-body figure.image,
.detail-copy figure.image,
.post-content figure.image {
    display: block;
}

.admin-section-savebar {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(10,31,54,.08);
}

.admin-section-savebar .button {
    min-width: 180px;
}

@media (max-width: 1100px) {
    .page-contact .contact-layout {
        grid-template-columns: 1fr;
    }

    .page-contact .contact-cards {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 980px) {
    .page-contact .contact-cards {
        grid-template-columns: 1fr;
    }

    .page-contact .contact-cards > :first-child {
        grid-column: auto;
    }

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

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

    .blog-detail-body figure[style*="float:left"],
    .detail-copy figure[style*="float:left"],
    .post-content figure[style*="float:left"],
    .blog-detail-body img[style*="float:left"],
    .detail-copy img[style*="float:left"],
    .post-content img[style*="float:left"],
    .blog-detail-body figure[style*="float: left"],
    .detail-copy figure[style*="float: left"],
    .post-content figure[style*="float: left"],
    .blog-detail-body img[style*="float: left"],
    .detail-copy img[style*="float: left"],
    .post-content img[style*="float: left"],
    .blog-detail-body .image-style-align-left,
    .detail-copy .image-style-align-left,
    .post-content .image-style-align-left,
    .blog-detail-body figure.image.align-left,
    .detail-copy figure.image.align-left,
    .post-content figure.image.align-left,
    .blog-detail-body figure[style*="float:right"],
    .detail-copy figure[style*="float:right"],
    .post-content figure[style*="float:right"],
    .blog-detail-body img[style*="float:right"],
    .detail-copy img[style*="float:right"],
    .post-content img[style*="float:right"],
    .blog-detail-body figure[style*="float: right"],
    .detail-copy figure[style*="float: right"],
    .post-content figure[style*="float: right"],
    .blog-detail-body img[style*="float: right"],
    .detail-copy img[style*="float: right"],
    .post-content img[style*="float: right"],
    .blog-detail-body .image-style-align-right,
    .detail-copy .image-style-align-right,
    .post-content .image-style-align-right,
    .blog-detail-body figure.image.align-right,
    .detail-copy figure.image.align-right,
    .post-content figure.image.align-right {
        float: none !important;
        max-width: 100%;
        width: 100%;
        margin: 1rem 0 1.2rem !important;
    }
}

@media (max-width: 640px) {
    .site-footer .footer-nav-list {
        grid-template-columns: 1fr;
    }
}
