/* ==========================================================================
   SGS Intercools â€” Home page sections
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO-01
   -------------------------------------------------------------------------- */

.sgs-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100svh;
    overflow: hidden;
    background: var(--sgs-navy-deep);
    color: var(--sgs-white);
    isolation: isolate;
}

.sgs-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.sgs-hero__video,
.sgs-hero__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.sgs-hero__video {
    opacity: 0;
    transition: opacity 500ms linear;
    /* Decorative only: never interactive (no click / right-click / PiP). */
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.sgs-hero__video.is-playing {
    opacity: 1;
}

.sgs-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            rgba(7, 41, 79, 0.97) 0%,
            rgba(7, 41, 79, 0.90) 20%,
            rgba(7, 41, 79, 0.56) 46%,
            rgba(7, 41, 79, 0.14) 72%,
            rgba(7, 41, 79, 0.04) 100%),
        linear-gradient(180deg, rgba(7, 38, 80, 0.55) 0%, rgba(7, 38, 80, 0) 42%, rgba(7, 38, 80, 0.35) 100%);
}

[dir='rtl'] .sgs-hero__overlay {
    background:
        linear-gradient(270deg,
            rgba(7, 41, 79, 0.97) 0%,
            rgba(7, 41, 79, 0.90) 20%,
            rgba(7, 41, 79, 0.56) 46%,
            rgba(7, 41, 79, 0.14) 72%,
            rgba(7, 41, 79, 0.04) 100%),
        linear-gradient(180deg, rgba(7, 38, 80, 0.55) 0%, rgba(7, 38, 80, 0) 42%, rgba(7, 38, 80, 0.35) 100%);
}

.sgs-hero__inner {
    width: 100%;
    padding-block: calc(var(--sgs-header-h) + clamp(56px, 9vh, 140px)) clamp(48px, 8vh, 120px);
}

.sgs-hero__content {
    max-width: min(760px, 100%);
}

.sgs-hero__eyebrow {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.7rem, 0.86vw, 0.98rem);
    letter-spacing: 0.26em;
}

.sgs-hero__title span {
    display: block;
}

.sgs-hero__title .sgs-hero__title-mid {
    color: var(--sgs-hero-sub);
}

.sgs-hero__lead {
    max-width: 34em;
    margin-block: clamp(18px, 2vw, 34px) 0;
    color: var(--sgs-white);
    font-stretch: var(--sgs-font-narrow);
    font-weight: 300;
    font-size: clamp(0.98rem, 1.42vw, 1.7rem);
    line-height: 1.55;
}

.sgs-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 58px);
    margin-block: clamp(24px, 2.8vw, 48px) 0;
    padding: 0;
    list-style: none;
}

.sgs-hero__stat-value {
    display: block;
    font-size: clamp(1.35rem, 2.4vw, 2.9rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--sgs-white);
}

.sgs-hero__stat-label {
    display: block;
    margin-block-start: 8px;
    font-stretch: var(--sgs-font-narrow);
    font-size: clamp(0.72rem, 0.98vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
}

.sgs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: clamp(26px, 3vw, 56px);
}

/* --------------------------------------------------------------------------
   BG-ZONE-01 â€” image background behind About â†’ Partners
   -------------------------------------------------------------------------- */

.sgs-bg-zone {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--sgs-sky);
    /* GSAP parallax writes this on the element; the ::before layer below
       moves with it. Without GSAP it stays 0% and the rendering is identical. */
    --sgs-parallax-y: 0%;
}

.sgs-bg-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Image + wash live on one composited layer so the parallax is a
       transform, not a background-position repaint. */
    background-image:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(255, 255, 255, 0.52) 34%,
            rgba(255, 255, 255, 0.62) 62%,
            rgba(255, 255, 255, 0.74) 100%),
        var(--sgs-bg-image);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: translate3d(0, var(--sgs-parallax-y, 0%), 0) scale(var(--sgs-parallax-scale, 1));
    transform-origin: center center;
}

/* --------------------------------------------------------------------------
   ABOUT-01
   -------------------------------------------------------------------------- */

.sgs-about {
    padding-block: clamp(30px, 3vw, 50px) clamp(30px, 3vw, 50px);
}

.sgs-about__head {
    margin-block-end: clamp(30px, 1.6vw, 66px);
}

.sgs-about__media {
    position: relative;
    padding-inline-end: clamp(14px, 2.2vw, 40px);
}

.sgs-about__frame {
    overflow: hidden;
    border-radius: var(--sgs-radius-card);
    aspect-ratio: 755 / 729;
    box-shadow: var(--sgs-shadow-card);
}

.sgs-about__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transition: transform 800ms var(--sgs-ease-out);
}

.sgs-about__media:hover .sgs-about__frame img {
    transform: scale(1.02);
}

.sgs-about__badge {
    position: absolute;
    inset-block-end: clamp(-10px, -1.2vw, -22px);
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(120px, 10vw, 192px);
    aspect-ratio: 191 / 154;
    padding: 8px;
    text-align: center;
    border-radius: clamp(22px, 2.6vw, 50px);
}

.sgs-about__badge-value {
    font-size: clamp(1.6rem, 2.85vw, 3.4rem);
    font-weight: 700;
    font-stretch: var(--sgs-font-wide);
    line-height: 1;
    letter-spacing: 0.03em;
    color: var(--sgs-primary);
}

.sgs-about__badge-label {
    margin-block-start: 4px;
    font-size: clamp(0.6rem, 0.9vw, 1.02rem);
    font-weight: 300;
    line-height: 1.2;
    color: #6B7F94;
}

.sgs-about__body {
    padding-block-start: clamp(6px, 1vw, 16px);
}

.sgs-about__body .sgs-copy {
    margin-block-start: clamp(16px, 1.8vw, 30px);
}

.sgs-about__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 0.85vw, 14px);
    margin-block-start: clamp(22px, 2.6vw, 44px);
}

.sgs-about__card {
    padding: clamp(18px, 1.9vw, 34px) clamp(14px, 1.6vw, 28px);
    text-align: center;
    transition: transform var(--sgs-dur-base) var(--sgs-ease-out), border-color var(--sgs-dur-base) var(--sgs-ease), box-shadow var(--sgs-dur-base) var(--sgs-ease);
}

.sgs-about__card:hover {
    transform: translateY(-4px);
    border-color: var(--sgs-primary);
    box-shadow: 0 12px 28px rgba(8, 71, 109, 0.14);
}

.sgs-about__card-title {
    margin: 0 0 10px;
    font-size: clamp(1rem, 1.4vw, 1.7rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--sgs-primary);
}

.sgs-about__card-text {
    margin: 0;
    font-size: clamp(0.82rem, 1.02vw, 1.22rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--sgs-primary);
}

/* --------------------------------------------------------------------------
   SERVICES-01
   -------------------------------------------------------------------------- */

.sgs-services {
    padding-block: clamp(30px, 3vw, 30px);
}

.sgs-services__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-block-end: clamp(18px, 2vw, 32px);
}

.sgs-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(6px, 1.6vw, 30px);
    margin: 0 0 clamp(22px, 1.8vw, 48px);
    padding: 4px 0;
    list-style: none;
}

.sgs-tab {
    flex: none;
    padding: 0.62em clamp(16px, 1.9vw, 34px);
    border: 1px solid transparent;
    border-radius: var(--sgs-radius-pill);
    background: transparent;
    color: var(--sgs-primary);
    font-family: var(--sgs-font);
    font-size: clamp(0.85rem, 1.35vw, 1.65rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--sgs-dur-base) var(--sgs-ease), border-color var(--sgs-dur-base) var(--sgs-ease), box-shadow var(--sgs-dur-base) var(--sgs-ease);
}

.sgs-tab:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sgs-tab[aria-selected='true'] {
    background: var(--sgs-glass-fill);
    border-color: var(--sgs-glass-border);
    box-shadow: 0 2px 10px rgba(8, 71, 109, 0.08);
}

.sgs-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 38px);
}

.sgs-service-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: clamp(12px, 1.3vw, 22px);
    min-height: clamp(200px, 18vw, 344px);
    padding: clamp(12px, 1vw, 18px);
    border-radius: var(--sgs-radius-card);
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid var(--sgs-glass-border);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    transition: transform var(--sgs-dur-base) var(--sgs-ease-out), border-color var(--sgs-dur-base) var(--sgs-ease), box-shadow var(--sgs-dur-base) var(--sgs-ease), background-color var(--sgs-dur-base) var(--sgs-ease);
}

.sgs-service-card:hover {
    transform: translateY(-6px);
    background:
        radial-gradient(circle at 18% 12%, rgba(79, 221, 232, 0.22), transparent 55%),
        linear-gradient(160deg, #113550 0%, #0A2038 55%, #07111C 100%);
    border-color: var(--sgs-cyan);
    box-shadow: 0 0 34px rgba(79, 221, 232, 0.38), inset 0 0 34px rgba(79, 221, 232, 0.1);
}

.sgs-service-card:hover .sgs-service-card__eyebrow,
.sgs-service-card:hover .sgs-service-card__title {
    color: var(--sgs-white);
}

.sgs-service-card:hover .sgs-service-card__eyebrow {
    color: var(--sgs-cyan);
}

.sgs-service-card:hover .sgs-service-card__text {
    color: rgba(255, 255, 255, 0.86);
}

.sgs-service-card[hidden] {
    display: none !important;
}

.sgs-service-card__media {
    position: relative;
    flex: 0 0 44%;
    overflow: hidden;
    border-radius: var(--sgs-radius-media);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
    background: rgba(8, 71, 109, 0.12);
}

.sgs-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms var(--sgs-ease-out);
}

.sgs-service-card:hover .sgs-service-card__media img {
    transform: scale(1.05);
}

.sgs-service-card__icon {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 5.6vw, 106px);
    height: clamp(50px, 5.4vw, 103px);
    border-end-start-radius: 18px;
    background: var(--sgs-navy-deep);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 32% 100%, 0 68%);
}

[dir='rtl'] .sgs-service-card__icon {
    clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.sgs-service-card__icon svg {
    width: clamp(24px, 2.5vw, 48px);
    height: clamp(24px, 2.5vw, 48px);
    color: var(--sgs-white);
    transition: transform 700ms var(--sgs-ease-in-out);
}

.sgs-service-card:hover .sgs-service-card__icon svg {
    transform: rotate(60deg);
}

.sgs-service-card--fan:hover .sgs-service-card__icon svg {
    transform: rotate(360deg);
}

.sgs-service-card--wrench:hover .sgs-service-card__icon svg {
    transform: rotate(-12deg);
}

.sgs-service-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    padding-inline-end: clamp(4px, 0.8vw, 16px);
    padding-block: clamp(8px, 1vw, 16px);
}

.sgs-service-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block-end: clamp(6px, 0.6vw, 12px);
    color: var(--sgs-primary);
}

.sgs-service-card__eyebrow::after {
    content: '';
    width: clamp(28px, 3vw, 58px);
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.sgs-service-card__title {
    margin: 0 0 clamp(8px, 0.8vw, 14px);
    font-size: clamp(1.05rem, 1.6vw, 1.95rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.02em;
    color: var(--sgs-primary);
}

.sgs-service-card__text {
    margin: 0 0 clamp(12px, 1.2vw, 20px);
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    font-weight: 300;
    line-height: 1.3;
    color: rgba(8, 71, 109, 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sgs-service-card__link {
    align-self: flex-start;
}

/* Services cards - unified style with hover effect */

.sgs-hud-corners,
.sgs-hud-tag {
    display: none !important;
}

.sgs-services__more {
    display: flex;
    justify-content: flex-end;
    margin-block-start: clamp(20px, 2.4vw, 42px);
}

/* --------------------------------------------------------------------------
   CATALOG-01
   -------------------------------------------------------------------------- */

.sgs-catalog {
    padding-block: clamp(20px, 2vw, 20px);
}

.sgs-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 38px);
    margin-block-start: clamp(26px, 3vw, 54px);
}

.sgs-catalog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--sgs-radius-card);
    background: var(--sgs-navy-deep);
    color: var(--sgs-white);
    text-decoration: none;
    overflow: hidden;
    transition: transform 350ms var(--sgs-ease-out), box-shadow 350ms var(--sgs-ease-out);
}

.sgs-catalog-card:hover,
.sgs-catalog-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--sgs-shadow-float);
}

.sgs-catalog-card__media {
    position: relative;
    aspect-ratio: 431 / 470;
    border-radius: var(--sgs-radius-card);
    overflow: hidden;
    background: #011d4c;
}

.sgs-catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 350ms var(--sgs-ease-out);
}

.sgs-catalog-card:hover .sgs-catalog-card__media img,
.sgs-catalog-card:focus-within .sgs-catalog-card__media img {
    transform: scale(1.04);
}

.sgs-catalog-card__badges {
    position: absolute;
    inset-block-start: clamp(10px, 1vw, 16px);
    inset-inline-start: clamp(10px, 1vw, 16px);
    z-index: 2;
    display: flex;
    gap: 6px;
}

.sgs-catalog-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sgs-primary);
    box-shadow: 0 4px 12px rgba(3, 22, 43, 0.28);
}

.sgs-catalog-card__badge svg {
    width: 15px;
    height: 15px;
}

.sgs-catalog-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 38, 80, 0.55);
    opacity: 0;
    transition: opacity 350ms var(--sgs-ease-out);
}

.sgs-catalog-card:hover .sgs-catalog-card__overlay,
.sgs-catalog-card:focus-within .sgs-catalog-card__overlay {
    opacity: 1;
}

.sgs-catalog-card__overlay .sgs-btn {
    --sgs-btn-bg: var(--sgs-navy-deep);
    --sgs-btn-fg: var(--sgs-white);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 350ms var(--sgs-ease-out), opacity 350ms var(--sgs-ease-out);
    box-shadow: var(--sgs-shadow-btn);
}

.sgs-catalog-card:hover .sgs-catalog-card__overlay .sgs-btn,
.sgs-catalog-card:focus-within .sgs-catalog-card__overlay .sgs-btn {
    transform: none;
    opacity: 1;
}

.sgs-catalog-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-block-start: calc(clamp(18px, 2vw, 38px) * -1);
    padding: clamp(30px, 2.9vw, 54px) clamp(12px, 1.2vw, 22px) clamp(20px, 2vw, 36px);
    border-start-start-radius: var(--sgs-radius-card);
    border-start-end-radius: var(--sgs-radius-card);
    background: var(--sgs-navy-deep);
    text-align: center;
}

.sgs-catalog-card__name {
    margin: 0;
    font-size: clamp(1rem, 1.55vw, 1.9rem);
    font-weight: 300;
    font-stretch: var(--sgs-font-narrow);
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: #EEECFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sgs-catalog-card__meta {
    margin: 0;
    font-size: clamp(0.72rem, 0.9vw, 1.1rem);
    font-weight: 300;
    font-stretch: var(--sgs-font-narrow);
    letter-spacing: 0.05em;
    color: #8B9AAE;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sgs-catalog__more {
    display: flex;
    justify-content: flex-end;
    margin-block-start: clamp(20px, 2.4vw, 44px);
}

/* --------------------------------------------------------------------------
   CAROUSEL-01 (mobile only: services + catalog)
   The dots are rendered by JS; without JS the container stays hidden and the
   grids keep their normal stacked layout.
   -------------------------------------------------------------------------- */

.sgs-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-block-start: clamp(16px, 2.6vw, 24px);
}

.sgs-carousel__dots[hidden] {
    display: none;
}

.sgs-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(8, 71, 109, 0.38);
    border-radius: var(--sgs-radius-pill);
    background: transparent;
    cursor: pointer;
    transition: width var(--sgs-dur-base) var(--sgs-ease), background-color var(--sgs-dur-base) var(--sgs-ease), border-color var(--sgs-dur-base) var(--sgs-ease);
}

.sgs-carousel__dot:hover {
    border-color: var(--sgs-primary);
}

.sgs-carousel__dot[aria-current='true'] {
    width: 22px;
    background: var(--sgs-primary);
    border-color: var(--sgs-primary);
}

/* --------------------------------------------------------------------------
   PARTNERS-01
   -------------------------------------------------------------------------- */

.sgs-partners {
    padding-block: clamp(30px, 3vw, 30px) clamp(30px, 3vw, 29px);
}

.sgs-partners__panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-block-start: clamp(24px, 3vw, 54px);
    border: 2px solid var(--sgs-primary);
    border-radius: var(--sgs-radius-card);
    background: linear-gradient(90deg, #E6EBEF 0%, #FEFEFE 100%);
    overflow: hidden;
}

[dir='rtl'] .sgs-partners__panel {
    background: linear-gradient(270deg, #E6EBEF 0%, #FEFEFE 100%);
}

.sgs-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.4vw, 24px);
    padding: clamp(26px, 3vw, 56px) clamp(18px, 2vw, 40px);
    text-decoration: none;
    color: var(--sgs-primary);
}

.sgs-partner + .sgs-partner {
    border-inline-start: 3px solid var(--sgs-primary);
}

.sgs-partner__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 22rem);
    min-height: clamp(60px, 6vw, 110px);
}

.sgs-partner__logo img {
    max-width: 100%;
    max-height: clamp(60px, 6vw, 110px);
    object-fit: contain;
}

.sgs-partner__name {
    font-size: clamp(1.15rem, 2vw, 2.6rem);
    font-weight: 700;
    font-stretch: var(--sgs-font-wide);
    letter-spacing: 0.02em;
    color: var(--sgs-primary);
}

.sgs-partner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1.4em;
    border: 2px solid transparent;
    border-radius: var(--sgs-radius-pill);
    font-size: clamp(0.85rem, 1.35vw, 1.65rem);
    font-weight: 400;
    transition: border-color var(--sgs-dur-base) var(--sgs-ease), box-shadow var(--sgs-dur-base) var(--sgs-ease), background-color var(--sgs-dur-base) var(--sgs-ease);
}

.sgs-partner__cta svg {
    width: 0.9em;
    height: 0.9em;
    transition: transform var(--sgs-dur-base) var(--sgs-ease-out);
}

.sgs-partner:hover .sgs-partner__cta,
.sgs-partner:focus-visible .sgs-partner__cta {
    border-color: var(--sgs-primary);
    box-shadow: var(--sgs-shadow-btn);
    background: rgba(255, 255, 255, 0.55);
}

.sgs-partner:hover .sgs-partner__cta svg {
    transform: translate(4px, -4px);
}

/* --------------------------------------------------------------------------
   CLIENTS-BAND-01 â€” slow logo ticker
   -------------------------------------------------------------------------- */

.sgs-clients-band {
    padding-block: clamp(18px, 2.2vw, 40px) clamp(48px, 5.4vw, 100px);
}

.sgs-clients-band__head {
    text-align: center;
}

.sgs-clients-band__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.8vw, 32px);
    margin-block: clamp(2px, 0.4vw, 8px) clamp(10px, 1.2vw, 18px);
    font-size: clamp(1.55rem, 2.6vw, 3.1rem);
    font-weight: 700;
    font-stretch: var(--sgs-font-wide);
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--sgs-primary);
}

.sgs-clients-band__line {
    flex: 1 1 0;
    max-width: clamp(42px, 8vw, 150px);
    height: 1px;
    background: linear-gradient(90deg, rgba(8, 71, 109, 0), rgba(8, 71, 109, 0.42));
}

.sgs-clients-band__line:last-child {
    background: linear-gradient(270deg, rgba(8, 71, 109, 0), rgba(8, 71, 109, 0.42));
}

.sgs-clients-band__sub {
    max-width: 46rem;
    margin: 0 auto;
    font-family: var(--sgs-font);
    font-stretch: var(--sgs-font-narrow);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.15vw, 1.35rem);
    line-height: 1.55;
    color: var(--sgs-text-body);
}

.sgs-marquee {
    position: relative;
    margin-block-start: clamp(22px, 2.6vw, 42px);
    padding-block: clamp(6px, 0.8vw, 14px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.sgs-marquee__track {
    display: flex;
    width: max-content;
    animation: sgs-marquee var(--sgs-marquee-duration, 60s) linear infinite;
    will-change: transform;
}

.sgs-marquee:hover .sgs-marquee__track,
.sgs-marquee:focus-within .sgs-marquee__track {
    animation-play-state: paused;
}

.sgs-marquee__set {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 26px);
    margin: 0;
    padding: 0;
    padding-inline-end: clamp(14px, 1.6vw, 26px);
    list-style: none;
}

.sgs-marquee__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: clamp(150px, 13.5vw, 214px);
    height: clamp(72px, 6.2vw, 100px);
    padding: clamp(7px, 0.8vw, 12px);
    border: 1px solid rgba(8, 71, 109, 0.14);
    border-radius: var(--sgs-radius-media);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.66) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(7, 38, 80, 0.05);
    transition: border-color var(--sgs-dur-base) var(--sgs-ease), box-shadow var(--sgs-dur-base) var(--sgs-ease), transform var(--sgs-dur-base) var(--sgs-ease-out);
}

.sgs-marquee__item:hover {
    border-color: rgba(8, 71, 109, 0.34);
    box-shadow: var(--sgs-shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.sgs-marquee__item img {
    max-width: 100%;
    max-height: 135%;
    object-fit: contain;
    /* filter: grayscale(1); */
    /* opacity: 0.62; */
    transition: filter var(--sgs-dur-base) var(--sgs-ease), opacity var(--sgs-dur-base) var(--sgs-ease);
}

.sgs-marquee__item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.sgs-clients-band__actions {
    display: flex;
    justify-content: center;
    margin-block-start: clamp(16px, 2vw, 32px);
}

@keyframes sgs-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* --------------------------------------------------------------------------
   CONTACT-01
   -------------------------------------------------------------------------- */

.sgs-contact {
    background: var(--sgs-white);
    padding-block: clamp(30px, 3vw, 30px);
}

.sgs-contact__title {
    margin-block-end: clamp(26px, 3vw, 52px);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sgs-contact__row {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.78fr);
    gap: clamp(18px, 2.4vw, 44px);
    align-items: stretch;
}

.sgs-contact-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(22px, 2.6vw, 46px);
    min-height: clamp(320px, 26vw, 520px);
    padding: clamp(24px, 2.8vw, 54px) clamp(20px, 2.3vw, 44px);
    border-radius: var(--sgs-radius-card);
    overflow: hidden;
    color: var(--sgs-white);
    box-shadow: var(--sgs-shadow-card);
    background-color: var(--sgs-contact-grad-a);
    background-image:
        linear-gradient(145deg, rgba(42, 82, 131, 0.94) 0%, rgba(86, 142, 199, 0.72) 100%),
        var(--sgs-contact-image);
    background-size: cover;
    background-position: center bottom;
}

.sgs-contact-info__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--sgs-white);
}

.sgs-contact-info__sub {
    margin: -14px 0 0;
    font-size: clamp(0.82rem, 1.25vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.62);
}

.sgs-contact-info__list {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.1vw, 38px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sgs-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 1.1vw, 20px);
    font-size: clamp(0.85rem, 1.22vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.45;
    color: var(--sgs-white);
}

.sgs-contact-info__item svg {
    flex: none;
    width: clamp(22px, 1.9vw, 36px);
    height: clamp(22px, 1.9vw, 36px);
    margin-block-start: 0.1em;
    color: var(--sgs-white);
}

.sgs-contact-info__item a {
    color: inherit;
    text-decoration: none;
}

.sgs-contact-info__item a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sgs-contact-info__item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sgs-contact-info__item small {
    font-size: 0.78em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.sgs-contact-form {
    padding: clamp(20px, 2.6vw, 48px) clamp(18px, 2.4vw, 46px);
    border-radius: var(--sgs-radius-card);
    background: var(--sgs-form-panel);
    box-shadow: var(--sgs-shadow-card);
}

.sgs-contact-form__kicker {
    margin: 0 0 6px;
    font-size: clamp(0.78rem, 1.05vw, 1.2rem);
    font-weight: 400;
    color: var(--sgs-placeholder);
}

.sgs-contact-form__title {
    margin: 0 0 clamp(16px, 2vw, 32px);
    font-size: clamp(1.4rem, 2.35vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--sgs-primary);
}

.sgs-contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.15vw, 20px);
}

.sgs-contact-form__grid .sgs-field--full {
    grid-column: 1 / -1;
}

.sgs-contact-form__actions {
    margin-block-start: clamp(12px, 1.4vw, 22px);
}

.sgs-contact-form__note {
    margin: 10px 0 0;
    font-size: 0.78rem;
    color: var(--sgs-placeholder);
}

.sgs-map {
    position: relative;
    margin-block-start: clamp(28px, 3vw, 56px);
    border-radius: clamp(22px, 2.4vw, 42px);
    overflow: hidden;
    box-shadow: var(--sgs-shadow-card);
    background: var(--sgs-surface);
}

.sgs-map iframe {
    display: block;
    width: 100%;
    border: 0;
    aspect-ratio: 1746 / 708;
    min-height: 260px;
}

.sgs-map__fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    aspect-ratio: 1746 / 708;
    min-height: 260px;
    padding: 24px;
    text-align: center;
    color: var(--sgs-primary);
}

.sgs-map__foot {
    display: flex;
    justify-content: flex-end;
    margin-block-start: 14px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .sgs-hero {
        min-height: 88svh;
    }

    .sgs-about__media {
        padding-inline-end: 0;
        max-width: 34rem;
        margin-inline: auto;
    }

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

    .sgs-contact__row {
        grid-template-columns: 1fr;
    }

    .sgs-contact-info {
        min-height: 0;
    }
}

@media (max-width: 991.98px) {
    .sgs-services__grid {
        grid-template-columns: 1fr;
    }

    .sgs-about__body {
        padding-block-start: clamp(28px, 4vw, 44px);
    }
}

@media (max-width: 767.98px) {
    .sgs-hero {
        min-height: 92svh;
    }

    .sgs-hero__actions .sgs-btn {
        flex: 1 1 100%;
    }

    .sgs-service-card {
        flex-direction: column;
        min-height: 0;
    }

    .sgs-service-card__media {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .sgs-service-card__body {
        padding: 4px 8px 12px;
    }

    .sgs-about__cards {
        grid-template-columns: 1fr;
    }

    .sgs-catalog__grid {
        grid-template-columns: 1fr;
        max-width: 26rem;
        margin-inline: auto;
    }

    /* Category tabs wrap onto extra rows instead of scrolling sideways. */
    .sgs-tabs {
        justify-content: center;
        gap: 6px;
        margin-block-end: clamp(18px, 4vw, 26px);
    }

    .sgs-tab {
        padding: 0.55em 14px;
        font-size: 0.78rem;
        letter-spacing: 0.02em;
    }

    /* Mobile carousel (JS adds .is-carousel): one card + a peek of the next. */
    .sgs-js [data-sgs-carousel].is-carousel {
        display: flex;
        align-items: stretch;
        gap: 14px;
        max-width: none;
        margin-inline: 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sgs-js [data-sgs-carousel].is-carousel::-webkit-scrollbar {
        display: none;
    }

    .sgs-js [data-sgs-carousel].is-carousel > [data-sgs-carousel-item] {
        flex: 0 0 86%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .sgs-partners__panel {
        grid-template-columns: 1fr;
    }

    .sgs-partner + .sgs-partner {
        border-inline-start: 0;
        border-block-start: 3px solid var(--sgs-primary);
    }

    .sgs-contact-form__grid {
        grid-template-columns: 1fr;
    }

    .sgs-services__more,
    .sgs-catalog__more {
        justify-content: stretch;
    }

    .sgs-services__more .sgs-btn,
    .sgs-catalog__more .sgs-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgs-hero__video {
        display: none;
    }

    .sgs-catalog-card:hover,
    .sgs-catalog-card:focus-within {
        transform: none;
    }

    .sgs-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .sgs-marquee__track {
        animation: none;
        will-change: auto;
    }

    .sgs-marquee__set[aria-hidden='true'] {
        display: none;
    }

    .sgs-marquee__item:hover {
        transform: none;
    }
}

/* ==========================================================================
   HOME REFINEMENT â€” calmer type, imagery and cards (HOME ONLY)
   Scope: `body.sgs-home` + the five inner sections. The hero (.sgs-hero),
   the header (.sgs-header), the contact block and every inner page keep
   their approved sizes. Rolling back one rule = dropping `body.sgs-home`
   from its selector.
   ========================================================================== */

/* Softer geometry, edges and shadows for the home cards only. */
body.sgs-home :is(.sgs-about, .sgs-services, .sgs-catalog, .sgs-partners, .sgs-clients-band) {
    --sgs-radius-card: clamp(22px, 2vw, 34px);
    --sgs-radius-media: clamp(14px, 1.3vw, 22px);
    --sgs-glass-fill: rgba(255, 255, 255, 0.52);
    --sgs-glass-border: rgba(8, 71, 109, 0.24);
    --sgs-shadow-card: 0 10px 30px rgba(7, 38, 80, 0.10);
    --sgs-shadow-float: 0 18px 44px rgba(7, 38, 80, 0.12);
}

/* --- Typography ---------------------------------------------------------- */

body.sgs-home :is(.sgs-about, .sgs-services, .sgs-catalog, .sgs-partners) .sgs-h2 {
    font-size: clamp(2rem, 2.55vw, 2.875rem);
    line-height: 1.14;
}

body.sgs-home :is(.sgs-about, .sgs-services, .sgs-catalog, .sgs-partners, .sgs-clients-band) .sgs-eyebrow {
    font-size: clamp(0.7rem, 0.72vw, 0.82rem);
    letter-spacing: 0.18em;
}

body.sgs-home :is(.sgs-about, .sgs-services, .sgs-catalog, .sgs-partners) .sgs-sub {
    font-size: clamp(0.98rem, 1.32vw, 1.5rem);
}

body.sgs-home :is(.sgs-about, .sgs-services, .sgs-catalog, .sgs-partners, .sgs-clients-band) .sgs-btn {
    font-size: clamp(0.9rem, 1.05vw, 1.08rem);
}

body.sgs-home :is(.sgs-about, .sgs-services, .sgs-catalog, .sgs-partners, .sgs-clients-band) .sgs-btn--sm {
    padding: 0.42em 1.3em;
    font-size: clamp(0.84rem, 0.9vw, 0.98rem);
}

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

body.sgs-home .sgs-about__frame {
    aspect-ratio: 5 / 4;
}

body.sgs-home .sgs-about__badge {
    width: clamp(112px, 8.4vw, 160px);
}

body.sgs-home .sgs-about__badge-value {
    font-size: clamp(1.5rem, 2.2vw, 2.6rem);
}

body.sgs-home .sgs-about__badge-label {
    font-size: clamp(0.58rem, 0.78vw, 0.88rem);
}

body.sgs-home .sgs-about__card {
    padding: clamp(16px, 1.5vw, 26px) clamp(14px, 1.4vw, 24px);
}

body.sgs-home .sgs-about__card-title {
    font-size: clamp(0.95rem, 1.1vw, 1.3rem);
}

body.sgs-home .sgs-about__card-text {
    font-size: clamp(0.82rem, 0.85vw, 1rem);
}

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

body.sgs-home .sgs-service-card {
    gap: clamp(10px, 1.1vw, 18px);
    padding: clamp(10px, 0.9vw, 16px);
}

body.sgs-home .sgs-service-card:hover {
    transform: translateY(-4px);
}

body.sgs-home .sgs-service-card__eyebrow {
    margin-block-end: clamp(4px, 0.5vw, 8px);
    font-size: clamp(0.78rem, 0.82vw, 0.95rem);
}

body.sgs-home .sgs-service-card__title {
    margin-block-end: clamp(6px, 0.6vw, 10px);
    font-size: clamp(1.05rem, 1.35vw, 1.55rem);
    line-height: 1.2;
}

body.sgs-home .sgs-service-card__text {
    margin-block-end: clamp(10px, 0.9vw, 16px);
    font-size: clamp(0.86rem, 0.9vw, 1rem);
    line-height: 1.45;
    -webkit-line-clamp: 2;
}

body.sgs-home .sgs-service-card__icon {
    width: clamp(46px, 4.4vw, 82px);
    height: clamp(44px, 4.2vw, 80px);
}

body.sgs-home .sgs-service-card__icon svg {
    width: clamp(22px, 2vw, 38px);
    height: clamp(22px, 2vw, 38px);
}

/* --- Catalog ------------------------------------------------------------- */

body.sgs-home .sgs-catalog-card__media {
    aspect-ratio: 1 / 1;
}

body.sgs-home .sgs-catalog-card__body {
    gap: 6px;
    margin-block-start: -20px;
    padding: clamp(24px, 2vw, 30px) clamp(12px, 1vw, 18px) clamp(16px, 1.4vw, 24px);
}

body.sgs-home .sgs-catalog-card__name {
    font-size: clamp(1.02rem, 1.25vw, 1.32rem);
}

body.sgs-home .sgs-catalog-card__meta {
    font-size: clamp(0.75rem, 0.85vw, 0.95rem);
}

body.sgs-home .sgs-catalog-card:hover,
body.sgs-home .sgs-catalog-card:focus-within {
    transform: translateY(-4px);
}

/* --- Partners ------------------------------------------------------------ */

body.sgs-home .sgs-partners__panel {
    border-width: 1.5px;
}

body.sgs-home .sgs-partner {
    gap: clamp(10px, 1.1vw, 18px);
    padding: clamp(22px, 2.2vw, 36px) clamp(18px, 1.8vw, 32px);
}

body.sgs-home .sgs-partner + .sgs-partner {
    border-inline-start-width: 1.5px;
}

body.sgs-home .sgs-partner__logo {
    width: min(100%, 17rem);
    min-height: clamp(54px, 4.4vw, 80px);
}

body.sgs-home .sgs-partner__logo img {
    max-height: clamp(54px, 4.4vw, 80px);
}

body.sgs-home .sgs-partner__name {
    font-size: clamp(1.15rem, 1.75vw, 2rem);
}

body.sgs-home .sgs-partner__cta {
    font-size: clamp(0.85rem, 1.05vw, 1.05rem);
}

/* --- Clients band -------------------------------------------------------- */

body.sgs-home .sgs-clients-band__title {
    font-size: clamp(1.5rem, 2.15vw, 2.25rem);
}

body.sgs-home .sgs-clients-band__sub {
    font-size: clamp(0.92rem, 1.05vw, 1.15rem);
}

body.sgs-home .sgs-marquee__item {
    width: clamp(148px, 12.5vw, 200px);
    height: clamp(70px, 5.8vw, 94px);
}

/* --- Card sizing (desktop only, so the mobile stacking/carousel rules
       declared above stay exactly as approved) ---------------------------- */

@media (min-width: 768px) {
    body.sgs-home .sgs-about > .sgs-shell,
    body.sgs-home .sgs-services > .sgs-shell,
    body.sgs-home .sgs-partners > .sgs-shell {
        max-width: 1400px;
    }

    body.sgs-home .sgs-catalog > .sgs-shell {
        max-width: 1500px;
    }

    body.sgs-home .sgs-service-card {
        min-height: clamp(190px, 16vw, 280px);
    }

    body.sgs-home .sgs-service-card__media {
        flex-basis: 38%;
    }

    body.sgs-home .sgs-tab {
        padding: 0.55em clamp(14px, 1.3vw, 22px);
        font-size: clamp(0.85rem, 1.05vw, 1.05rem);
        letter-spacing: 0.03em;
    }
}

@media (min-width: 1200px) {
    body.sgs-home .sgs-about__media {
        padding-inline-end: clamp(14px, 1.6vw, 28px);
    }
}

/* ==========================================================================
   CONTACT REFINEMENT — home section AND /contact (same partial, same CSS).
   Only the container width differs: on the home page the block aligns with
   the other 1400px sections; /contact keeps full width so it stays aligned
   with its own page hero.
   ========================================================================== */

.sgs-contact {
    --sgs-radius-card: clamp(22px, 2vw, 34px);
    --sgs-radius-textarea: 28px;
    --sgs-shadow-card: 0 10px 30px rgba(7, 38, 80, 0.10);
}

.sgs-contact__title {
    font-size: clamp(2rem, 2.55vw, 2.875rem);
    line-height: 1.14;
}

.sgs-contact-info__title {
    font-size: clamp(1.35rem, 1.95vw, 2.125rem);
}

.sgs-contact-info__sub {
    margin-block-start: -8px;
    font-size: clamp(0.85rem, 1.05vw, 1.125rem);
}

.sgs-contact-info__item {
    font-size: clamp(0.85rem, 1.1vw, 1.19rem);
}

.sgs-contact-info__item svg {
    width: clamp(20px, 1.6vw, 30px);
    height: clamp(20px, 1.6vw, 30px);
}

.sgs-contact-form__kicker {
    font-size: clamp(0.8rem, 0.9vw, 1rem);
}

.sgs-contact-form__title {
    font-size: clamp(1.4rem, 1.95vw, 2.125rem);
}

.sgs-contact .sgs-control {
    min-height: clamp(48px, 3vw, 58px);
    padding: 0.6em clamp(16px, 1.2vw, 22px);
    font-size: clamp(0.92rem, 0.95vw, 1.05rem);
}

.sgs-contact textarea.sgs-control {
    min-height: clamp(140px, 9vw, 200px);
}

.sgs-map {
    border-radius: clamp(20px, 2vw, 30px);
}

.sgs-map iframe {
    max-height: clamp(320px, 32vw, 520px);
}

@media (min-width: 768px) {
    body.sgs-home .sgs-contact > .sgs-shell {
        max-width: 1400px;
    }
}

/* ==========================================================================
   HERO VIEWPORT FIT — the CTA row must be visible on load at any screen size
   The hero is bottom-aligned inside `min-height: 100svh`; when the header,
   paddings and copy outgrow the viewport the section grows and the actions
   drop below the fold (worse in Arabic: rtl.css raises the hero title to
   line-height 1.2, so three lines take ~25% more height). These tiers
   compress the hero's vertical rhythm only — nothing above 1050px changes.
   ========================================================================== */

@media (max-height: 1050px) {
    .sgs-hero__inner {
        padding-block: calc(var(--sgs-header-h) + clamp(40px, 7vh, 96px)) clamp(32px, 6vh, 88px);
    }

    .sgs-hero .sgs-h1 {
        font-size: clamp(2.65rem, min(5.85vw, 10vh), 7rem);
    }

    .sgs-hero__lead {
        margin-block-start: clamp(16px, min(2vw, 2.4vh), 30px);
        font-size: clamp(0.98rem, min(1.42vw, 2.2vh), 1.5rem);
    }

    .sgs-hero__stats {
        margin-block-start: clamp(18px, min(2.8vw, 3vh), 38px);
    }

    .sgs-hero__stat-value {
        font-size: clamp(1.35rem, min(2.4vw, 3.2vh), 2.9rem);
    }

    .sgs-hero__stat-label {
        font-size: clamp(0.72rem, min(0.98vw, 1.6vh), 1.2rem);
    }

    .sgs-hero__actions {
        margin-block-start: clamp(18px, min(3vw, 3.4vh), 42px);
    }

    .sgs-hero__actions .sgs-btn {
        min-height: clamp(44px, min(3.3vw, 6.4vh), 58px);
        font-size: clamp(0.9rem, min(1.28vw, 1.9vh), 1.55rem);
    }
}

@media (max-height: 700px) {
    .sgs-hero__inner {
        padding-block: calc(var(--sgs-header-h) + clamp(24px, 5vh, 48px)) clamp(24px, 4vh, 40px);
    }

    .sgs-hero .sgs-h1 {
        font-size: clamp(2.1rem, min(5vw, 8.2vh), 4.6rem);
    }

    .sgs-hero__lead {
        margin-block-start: clamp(12px, 2vh, 20px);
        font-size: clamp(0.92rem, min(1.3vw, 1.9vh), 1.2rem);
    }

    .sgs-hero__stats {
        margin-block-start: clamp(12px, 2.2vh, 24px);
    }

    .sgs-hero__stat-value {
        font-size: clamp(1.2rem, 2.9vh, 2rem);
    }

    .sgs-hero__stat-label {
        font-size: clamp(0.7rem, 1.4vh, 0.95rem);
    }

    .sgs-hero__actions {
        margin-block-start: clamp(14px, 2.4vh, 26px);
    }

    .sgs-hero__actions .sgs-btn {
        min-height: clamp(44px, 7vh, 52px);
        font-size: clamp(0.88rem, 1.7vh, 1.1rem);
    }
}

/* ==========================================================================
   PARTNERS LAYOUT — three cards on desktop (the panel dividers already come
   from `.sgs-partner + .sgs-partner`), a tighter rhythm on tablets, and on
   mobile one slide + a peek of the next, exactly like the catalog carousel.
   The mobile rules only apply while `initCarousel()` has added `.is-carousel`
   to the panel (≤767.98px + JS); without JS the panel keeps the framed,
   stacked fallback declared earlier in the file.
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
    body.sgs-home .sgs-partner {
        gap: clamp(8px, 1vw, 14px);
        padding: clamp(18px, 2vw, 26px) clamp(12px, 1.4vw, 20px);
    }

    body.sgs-home .sgs-partner__logo {
        width: min(100%, 12rem);
        min-height: clamp(46px, 5.6vw, 62px);
    }

    body.sgs-home .sgs-partner__logo img {
        max-height: clamp(46px, 5.6vw, 62px);
    }

    body.sgs-home .sgs-partner__name {
        font-size: clamp(1rem, 1.5vw, 1.3rem);
        text-align: center;
    }

    body.sgs-home .sgs-partner__cta {
        padding: 0.45em 1.1em;
        font-size: clamp(0.78rem, 1vw, 0.9rem);
    }
}

@media (max-width: 767.98px) {
    /* Slides become standalone cards: the joined panel frame would clash with
       a horizontally scrolling strip. */
    body.sgs-home .sgs-partners__panel.is-carousel {
        border: 0;
        border-radius: 0;
        background: none;
    }

    body.sgs-home .sgs-partners__panel.is-carousel > .sgs-partner {
        border: 1.5px solid var(--sgs-primary);
        border-radius: var(--sgs-radius-card);
        background: linear-gradient(90deg, #E6EBEF 0%, #FEFEFE 100%);
    }

    [dir='rtl'] body.sgs-home .sgs-partners__panel.is-carousel > .sgs-partner {
        background: linear-gradient(270deg, #E6EBEF 0%, #FEFEFE 100%);
    }
}

/* ==========================================================================
   HERO TEXT LIFT — the eyebrow / title / lead sit a touch higher on their own.
   The hero is bottom-anchored (`align-items: flex-end`), so the only way to
   raise those three without moving the stats and the CTA row is a visual
   offset: `position: relative; top` never touches layout height, so the
   HERO VIEWPORT FIT tiers (Session 35) keep the actions exactly where they
   are. The `vh` term shrinks the lift on short screens so the eyebrow can
   never crowd the header. Rollback: delete this block.
   ========================================================================== */

.sgs-hero__content {
    --sgs-hero-lift: clamp(10px, min(1.6vw, 2.2vh), 28px);
}

.sgs-hero__eyebrow,
.sgs-hero__title,
.sgs-hero__lead {
    position: relative;
    top: calc(var(--sgs-hero-lift) * -4);
}

/* ==========================================================================
   HERO VIDEO FIT — the whole 16:9 frame, hero fully covered, no navy band.
   `hero.mp4` is 1280x720 (16:9) while the hero box is wider on desktop
   (e.g. 1920x950 => ~2.0 vs 1.778), so the base `object-fit: cover` +
   `object-position: center top` was cutting ~12% off the BOTTOM (the top edge
   is pinned, all the overflow falls below). Here the video is stretched to
   fill the box exactly: the entire frame stays visible, the hero is covered
   edge to edge and no navy band appears. The distortion stays under ~11%
   (the box is at most 16:10 against a 16:9 source) and the gate keeps phones
   (portrait and landscape) and portrait tablets on the previous `cover`
   behaviour, which is the intended look for them until a portrait video
   exists.
   Rollback: delete this block.
   ========================================================================== */

@media (min-width: 992px) and (min-aspect-ratio: 16 / 10) {
    .sgs-hero__video,
    .sgs-hero__poster {
        object-fit: fill;
    }
}
