@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
}

:root {
    --site-nav-height: 80px;
    --primary: #0E3A73;
    --primary-dark: #0B2A54;
    --secondary: #69B82D;
    --secondary-dark: #4F9623;
    --primary-rgb: 14, 58, 115;
    --primary-dark-rgb: 11, 42, 84;
    --secondary-rgb: 105, 184, 45;
    --black: #1A1A1A;
    --white: #F2F2F2;
    --light: #F8F9FA;
    --gray: #E8ECEF;
    --border: #D6D6D6;
    --heading: 'Montserrat', sans-serif;
    --body: 'Inter', sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --shadow-sm: 0 12px 30px rgba(11, 42, 84, .09);
    --shadow-md: 0 20px 55px rgba(11, 42, 84, .13);
    --shadow-lg: 0 28px 80px rgba(11, 42, 84, .18);
    --surface: rgba(255, 255, 255, .86);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--site-nav-height);
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--black);
    background:
        linear-gradient(180deg, rgba(248,249,250,.92) 0%, #ffffff 34%, rgba(248,249,250,.72) 100%);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.admin-bar .site-header {
    top: 0;
}

.wri-lite-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    pointer-events: none;
    color: var(--primary-dark);
    background:
        linear-gradient(135deg, rgba(var(--secondary-rgb), .1), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,249,250,.94) 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity .28s ease, visibility 0s linear .28s;
}

.wri-loader-enabled .wri-lite-loader {
    display: grid;
    animation: wri-lite-loader-timeout .28s ease 1.55s forwards;
}

.wri-lite-loader.is-hidden {
    animation: none;
    opacity: 0;
    visibility: hidden;
}

.wri-lite-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), .045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

.wri-lite-loader-inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(300px, 72vw);
    text-align: center;
}

.wri-lite-loader-mark {
    position: relative;
    display: block;
    width: min(214px, 56vw);
    overflow: hidden;
}

.wri-lite-loader-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 14%, rgba(255,255,255,.82) 46%, transparent 70%);
    transform: translateX(-115%);
    animation: wri-lite-loader-sheen .72s var(--ease) .08s forwards;
}

.wri-lite-loader-mark img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(6px) scale(.985);
    animation: wri-lite-loader-logo .36s var(--ease) forwards;
}

.wri-lite-loader-name {
    color: rgba(var(--primary-dark-rgb), .86);
    font-family: var(--heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wri-lite-loader-line {
    position: relative;
    width: min(230px, 62vw);
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), .12);
}

.wri-lite-loader-line::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--secondary), #8fd45b);
    box-shadow: 0 0 18px rgba(var(--secondary-rgb), .34);
    transform: scaleX(0);
    transform-origin: left;
    animation: wri-lite-loader-line .62s ease-out .08s forwards;
}

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

img {
    max-width: 100%;
}

::selection {
    background: rgba(var(--secondary-rgb), .28);
    color: var(--primary-dark);
}

:focus-visible {
    outline: 3px solid rgba(var(--secondary-rgb), .52);
    outline-offset: 4px;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,.86);
    border-bottom: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
    backdrop-filter: blur(18px) saturate(145%);
    transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.site-header::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--secondary-rgb), .72), transparent);
    opacity: 0;
    transform: scaleX(.42);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(255,255,255,.94);
    border-color: rgba(var(--primary-rgb), .14);
    box-shadow: 0 18px 45px rgba(11,42,84,.12);
}

.site-header.is-scrolled::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-wrap {
    --nav-height: var(--site-nav-height);
    --logo-box-width: 126px;
    --logo-box-height: 72px;
    width: 100%;
    height: var(--nav-height);
    max-width: none;
    padding: 0 clamp(18px, 2.8vw, 48px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    gap: 12px;
}

.brand-logo-frame {
    width: var(--logo-box-width);
    height: var(--logo-box-height);
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.brand-logo {
    display: block;
    width: auto;
    height: var(--logo-box-height);
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.brand-mark {
    font-family: var(--heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
}

.brand-text {
    font-family: var(--heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    transition: color .25s var(--ease);
}

.brand:hover .brand-text {
    color: var(--primary-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: clamp(14px, 1.4vw, 21px);
    font-family: var(--heading);
    font-size: 12px;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    transition: color .25s var(--ease), transform .25s var(--ease);
}

.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-current {
    color: var(--secondary);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after,
.main-nav a:not(.nav-cta).is-current::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav .nav-cta {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    min-height: 42px;
    overflow: hidden;
    background: var(--secondary);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 3px;
    box-shadow: 0 12px 28px rgba(var(--secondary-rgb), .25);
    line-height: 1;
}

.nav-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.4) 45%, transparent 72%);
    pointer-events: none;
    transform: translateX(-130%);
    transition: transform .55s var(--ease);
}

.nav-cta:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(var(--secondary-rgb), .32);
}

.nav-cta:hover::after {
    transform: translateX(130%);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--primary);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: color .25s var(--ease), transform .25s var(--ease);
}

.menu-toggle:hover,
.menu-toggle.is-open {
    color: var(--secondary);
    transform: translateY(-1px);
}

.hero-section {
    position: relative;
    margin-top: 0;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    isolation: isolate;
    background: var(--primary-dark);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(120deg, transparent 0 46%, rgba(105,184,45,.11) 48%, transparent 52% 100%);
    background-size: 84px 84px, 84px 84px, 320px 320px;
    opacity: .54;
    mix-blend-mode: screen;
    animation: wri-grid-drift 16s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 34%;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent, rgba(3,16,34,.72)),
        linear-gradient(90deg, rgba(var(--secondary-rgb), .3), transparent 38%, rgba(255,255,255,.12));
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.03);
    filter: saturate(1.08) contrast(1.04);
    transition: opacity .9s ease, transform 6.8s ease, filter .9s ease;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,25,52,.98), rgba(11,42,84,.72), rgba(11,42,84,.28)),
        linear-gradient(180deg, rgba(4,15,31,.22), transparent 42%, rgba(3,13,28,.56));
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide--spinning {
    background-image: url('../images/hero-spinning.jpg');
}

.hero-slide--factory {
    background-image: url('../images/factory-floor.webp');
}

.hero-slide--cones {
    background-image: url('../images/yarn-cones.webp');
}

.hero-slide--ring {
    background-image: url('../images/ring-spinning.webp');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 88px 0 92px;
}

.hero-section h1 {
    position: relative;
    margin: 0;
    font-family: var(--heading);
    font-size: clamp(42px, 6.5vw, 78px);
    line-height: 1.02;
    max-width: 840px;
    text-shadow: 0 16px 44px rgba(0,0,0,.32);
}

.hero-section h1,
.hero-text,
.hero-actions {
    opacity: 0;
    transform: translateY(24px);
    animation: wri-fade-up .9s var(--ease) forwards;
}

.hero-section h1 {
    animation-delay: .27s;
}

.hero-text {
    animation-delay: .39s;
}

.hero-actions {
    animation-delay: .51s;
}

.hero-text {
    max-width: 680px;
    margin: 22px 0 0;
    color: #f6f8fa;
    font-size: 20px;
    text-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 3px;
    font-family: var(--heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.38) 46%, transparent 74%);
    transform: translateX(-130%);
    transition: transform .6s var(--ease);
}

.btn:hover::after,
.btn:focus-visible::after {
    transform: translateX(130%);
}

.btn-primary {
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(var(--secondary-rgb), .28);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(var(--secondary-rgb), .36);
}

.btn-outline {
    border: 1px solid #ffffff;
    color: #ffffff;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0,0,0,.2);
}

.stats-band {
    position: relative;
    z-index: 5;
    padding: 44px 0 0;
    background: linear-gradient(180deg, var(--primary-dark) 0 44px, #ffffff 44px);
    color: var(--primary);
    border-bottom: 0;
    box-shadow: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), .1);
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-md);
    transform: none;
    margin-bottom: 0;
    backdrop-filter: blur(14px);
}

.stats-grid div {
    position: relative;
    padding: 28px 24px;
    border-left: 1px solid rgba(var(--primary-rgb), .1);
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,249,250,.78));
    transition: transform .28s var(--ease), background .28s var(--ease);
}

.stats-grid div::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), rgba(var(--primary-rgb), .7));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.stats-grid div:hover {
    transform: translateY(-4px);
    background: #ffffff;
}

.stats-grid div:hover::before {
    transform: scaleX(1);
}

.stats-grid div:last-child {
    border-right: 1px solid var(--border);
}

.stats-grid strong {
    display: block;
    font-family: var(--heading);
    font-size: 22px;
    line-height: 1.2;
}

.stats-grid span {
    color: var(--primary);
    font-size: 14px;
    opacity: .78;
}

.section {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
}

@media (min-width: 901px) {
    #home > .about-section,
    #home > .products-section,
    #home > .manufacturing-section,
    #home > .supply-map-section,
    #home > .quality-section,
    #home > .sustainability-section {
        display: flex;
        align-items: center;
        min-height: calc(100vh - var(--site-nav-height));
        min-height: calc(100svh - var(--site-nav-height));
    }
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}

h2 {
    margin: 0;
    font-family: var(--heading);
    color: var(--primary);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    text-wrap: balance;
}

.lead-copy p,
.section-heading p,
.process-panel p,
.supply-map-copy p,
.quality-grid p,
.contact-card p {
    margin: 18px 0 0;
    color: #414b56;
    font-size: 17px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.feature-row div,
.quality-cards div {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--secondary);
    border-radius: 6px;
    background:
        linear-gradient(135deg, #ffffff 0%, var(--light) 100%);
    padding: 20px;
    box-shadow: 0 10px 26px rgba(var(--primary-dark-rgb), .06);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.feature-row div::after,
.quality-cards div::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.8) 48%, transparent 56% 100%);
    transform: translateX(-120%);
    transition: transform .65s var(--ease);
}

.feature-row div:hover,
.quality-cards div:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.feature-row div:hover::after,
.quality-cards div:hover::after {
    transform: translateX(120%);
}

.feature-row strong,
.quality-cards strong {
    display: block;
    font-family: var(--heading);
    color: var(--primary);
}

.feature-row span,
.quality-cards span {
    display: block;
    margin-top: 6px;
    color: #52606d;
    font-size: 14px;
}

.products-section,
.contact-section {
    background:
        linear-gradient(180deg, rgba(248,249,250,.94), #ffffff 52%, rgba(248,249,250,.9)),
        linear-gradient(90deg, rgba(var(--primary-rgb), .04) 1px, transparent 1px);
    background-size: auto, 64px 64px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), .1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transform: perspective(900px) rotateX(0) rotateY(0) translateY(0);
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease), opacity .35s var(--ease);
    will-change: transform;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.72) 50%, transparent 58% 100%);
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity .35s var(--ease), transform .65s var(--ease);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

.product-link-card {
    display: block;
    color: inherit;
}

.product-card:hover {
    transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    opacity: 1;
    transform: translateX(100%);
}

.product-img {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: var(--gray);
    background-position: center;
    background-size: cover;
    transition: filter .35s var(--ease), transform .35s var(--ease);
}

.product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 45%, rgba(11,42,84,.35)),
        linear-gradient(90deg, rgba(255,255,255,.15), transparent 34%, rgba(105,184,45,.12));
    opacity: .82;
    transition: opacity .35s var(--ease);
}

.product-card:hover .product-img {
    filter: saturate(1.14) contrast(1.06);
}

.product-card:hover .product-img::after {
    opacity: .55;
}

.product-img.yarn-cones.wri-bg-loaded {
    background-image: url('../images/yarn-cones.webp');
}

.product-img.ring-spinning.wri-bg-loaded {
    background-image: url('../images/ring-spinning.webp');
}

.product-img.open-end.wri-bg-loaded {
    background-image: url('../images/open-end.webp');
}

.product-img.autocoro.wri-bg-loaded {
    background-image: url('../images/autocoro.webp');
}

.product-body {
    position: relative;
    z-index: 2;
    padding: 22px;
}

.product-body span {
    color: var(--secondary-dark);
    font-family: var(--heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-body h3,
.machine-card h3 {
    margin: 6px 0 8px;
    font-family: var(--heading);
    color: var(--primary);
    transition: color .25s var(--ease);
}

.product-card:hover .product-body h3 {
    color: var(--primary-dark);
}

.product-body p {
    margin: 0;
    color: #52606d;
    font-size: 14px;
}

.product-detail-grid {
    align-items: start;
}

.product-detail-card {
    outline: none;
}

.product-detail-card .product-body {
    min-height: 174px;
}

.product-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .35s ease, opacity .25s ease, transform .25s ease, margin-top .25s ease;
}

.product-more ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-more li {
    position: relative;
    padding: 9px 0 9px 24px;
    border-top: 1px solid var(--border);
    color: #52606d;
    font-size: 14px;
}

.product-more li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
}

.product-detail-card:hover,
.product-detail-card:focus,
.product-detail-card:focus-within {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 18px 46px rgba(0,0,0,.11);
}

.product-detail-card:hover .product-more,
.product-detail-card:focus .product-more,
.product-detail-card:focus-within .product-more {
    max-height: 240px;
    margin-top: 16px;
    opacity: 1;
    transform: translateY(0);
}

.products-interactive {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 34px;
    align-items: stretch;
}

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

.product-choice {
    width: 100%;
    border: 1px solid var(--border);
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-align: left;
    border-radius: 8px;
}

.product-choice .product-img {
    height: 180px;
}

.product-choice.is-active {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.products-interactive.has-active .product-choice:not(.is-active) {
    filter: grayscale(.9);
    opacity: .48;
    transform: scale(.985);
}

.products-interactive.has-active .product-choice:not(.is-active):hover,
.products-interactive.has-active .product-choice:not(.is-active):focus {
    opacity: .75;
}

.product-detail-panel {
    position: sticky;
    top: 118px;
    min-height: 100%;
    overflow: hidden;
    border-top: 6px solid var(--secondary);
    border-radius: 8px;
    background:
        linear-gradient(145deg, #ffffff, rgba(248,249,250,.92));
    box-shadow: var(--shadow-md);
    padding: 34px;
    isolation: isolate;
}

.product-detail-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), .04) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .65;
    pointer-events: none;
}

.product-detail-content {
    position: relative;
    z-index: 1;
    display: none;
}

.product-detail-content.is-active {
    display: block;
    animation: wri-fade-up .45s var(--ease) both;
}

.product-detail-content span {
    color: var(--secondary-dark);
    font-family: var(--heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-detail-content h2 {
    margin: 8px 0 16px;
    font-size: clamp(30px, 3.5vw, 46px);
}

.product-detail-content p {
    margin: 0;
    color: #414b56;
    font-size: 17px;
}

.product-detail-content ul {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.product-detail-content li {
    position: relative;
    padding: 12px 0 12px 32px;
    border-top: 1px solid var(--border);
    color: #52606d;
    transition: color .25s var(--ease), transform .25s var(--ease);
}

.product-detail-content li:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.product-detail-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--secondary);
}

.image-panel {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    box-shadow: 22px 22px 0 var(--primary-dark), var(--shadow-lg);
    isolation: isolate;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), filter .45s var(--ease);
}

.image-panel::before {
    content: '';
    position: absolute;
    inset: 18px;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 6px;
    pointer-events: none;
}

.image-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(120deg, rgba(var(--secondary-rgb), .28), transparent 38%, rgba(var(--primary-dark-rgb), .34)),
        linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.22) 50%, transparent 52% 100%);
    background-size: auto, 260px 100%;
    opacity: .75;
    transform: translateX(-12%);
    transition: opacity .35s var(--ease);
    animation: wri-panel-sheen 8s linear infinite;
}

.image-panel:hover {
    transform: translateY(-6px);
    filter: saturate(1.08);
    box-shadow: 16px 16px 0 var(--secondary), var(--shadow-lg);
}

.image-panel:hover::after {
    opacity: .55;
}

.factory-image.wri-bg-loaded {
    background-image: linear-gradient(rgba(14,58,115,.08), rgba(14,58,115,.08)), url('../images/factory-floor.webp');
}

.manufacturing-section .image-panel {
    animation: wri-manufacturing-drift 14s ease-in-out infinite alternate;
}

.manufacturing-section .image-panel::after {
    background: linear-gradient(120deg, rgba(var(--secondary-rgb), .24), transparent 42%, rgba(var(--primary-dark-rgb), .34));
    background-size: auto;
    transform: none;
    animation: none;
}

.manufacturing-section .image-panel:hover {
    transform: translateY(-3px);
    filter: saturate(1.06) contrast(1.02);
    box-shadow: 22px 22px 0 var(--primary-dark), var(--shadow-lg);
}

.manufacturing-section .image-panel:hover::after {
    opacity: .75;
}

.process-list {
    position: relative;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: process;
}

.process-list::before {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 32px;
    left: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--secondary), rgba(var(--primary-rgb), .24));
}

.process-list li {
    position: relative;
    min-height: 72px;
    padding: 0 0 22px 72px;
    border-bottom: 1px solid var(--border);
    counter-increment: process;
    transition: transform .28s var(--ease), border-color .28s var(--ease);
}

.process-list li:hover {
    transform: translateX(6px);
    border-color: rgba(var(--secondary-rgb), .42);
}

.process-list li + li {
    padding-top: 22px;
}

.process-list li::before {
    content: counter(process, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--secondary);
    color: #ffffff;
    border-radius: 50%;
    font-family: var(--heading);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(var(--secondary-rgb), .3);
    transition: transform .28s var(--ease), background .28s var(--ease);
}

.process-list li:hover::before {
    background: var(--primary);
    transform: scale(1.08);
}

.process-list li + li::before {
    top: 22px;
}

.process-list strong {
    display: block;
    color: var(--primary);
    font-family: var(--heading);
}

.process-list span {
    color: #52606d;
}

.supply-map-section {
    border-top: 1px solid rgba(var(--primary-rgb), .08);
    border-bottom: 1px solid rgba(var(--primary-rgb), .08);
    background:
        radial-gradient(circle at 16% 18%, rgba(var(--secondary-rgb), .16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, rgba(248,249,250,.96) 52%, rgba(var(--primary-rgb), .06) 100%);
    isolation: isolate;
}

.supply-map-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), .04) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.26));
}

.supply-map-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 58px;
    align-items: center;
}

.supply-map-copy h2 {
    max-width: 640px;
}

.supply-location-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.supply-location-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    border: 1px solid rgba(var(--primary-rgb), .08);
    border-radius: 8px;
    background: rgba(255,255,255,.82);
    color: inherit;
    cursor: default;
    font: inherit;
    padding: 15px;
    box-shadow: 0 10px 26px rgba(var(--primary-dark-rgb), .06);
    text-align: left;
    transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease);
}

.supply-location-item:hover,
.supply-location-item:focus-visible,
.supply-location-item.is-active {
    transform: translateY(-4px);
    border-color: rgba(var(--secondary-rgb), .42);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.supply-location-item:focus-visible {
    outline: 3px solid rgba(var(--secondary-rgb), .24);
    outline-offset: 3px;
}

.supply-location-marker {
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border: 3px solid rgba(var(--secondary-rgb), .24);
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), .12);
    transition: transform .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease);
}

.supply-location-item:hover .supply-location-marker,
.supply-location-item:focus-visible .supply-location-marker,
.supply-location-item.is-active .supply-location-marker {
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(var(--secondary-rgb), .16);
    transform: scale(1.2);
}

.supply-location-item strong {
    display: block;
    color: var(--primary);
    font-family: var(--heading);
    font-size: 15px;
}

.supply-location-item > div > span {
    display: block;
    margin-top: 3px;
    color: #52606d;
    font-size: 13px;
    line-height: 1.45;
}

.supply-map-card {
    position: relative;
    border: 1px solid rgba(var(--primary-rgb), .1);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,249,250,.86)),
        radial-gradient(circle at 72% 18%, rgba(var(--secondary-rgb), .18), transparent 30%);
    box-shadow: var(--shadow-lg);
    padding: clamp(26px, 4vw, 44px);
}

.supply-map-card::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(var(--primary-rgb), .08);
    border-radius: 6px;
    pointer-events: none;
}

.supply-map-visual {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 23 / 28;
    margin: 0 auto;
}

.pakistan-map-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pakistan-map-regions {
    filter: none;
}

.pakistan-map-region {
    fill: url(#pakistanMapFill);
    stroke: rgba(var(--primary-rgb), .42);
    stroke-linejoin: round;
    stroke-width: 2;
    transition: fill .28s var(--ease), stroke .28s var(--ease);
    vector-effect: non-scaling-stroke;
}

.region-balochistan {
    fill: #e8f2df;
}

.region-sindh {
    fill: #dcefd6;
}

.region-punjab {
    fill: #f3f9ee;
}

.region-kp {
    fill: #deebdf;
}

.region-gb {
    fill: #edf6e7;
}

.region-kashmir {
    fill: rgba(var(--secondary-rgb), .18);
    stroke: rgba(var(--primary-rgb), .48);
}

.region-ict {
    fill: rgba(var(--primary-rgb), .22);
    stroke-width: 1.4;
}

.pakistan-map-region:hover {
    fill: rgba(var(--secondary-rgb), .24);
    stroke: rgba(var(--primary-rgb), .58);
}

.pakistan-map-labels {
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.supply-map-section.has-active-location .pakistan-map-labels {
    opacity: 0;
    transform: translateY(4px);
}

.pakistan-map-labels text {
    fill: rgba(var(--primary-rgb), .8);
    font-family: var(--heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    paint-order: stroke;
    stroke: rgba(255,255,255,.9);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5px;
    text-anchor: middle;
}

.pakistan-map-labels tspan {
    text-anchor: middle;
}

.supply-pin {
    position: absolute;
    left: var(--pin-x);
    top: var(--pin-y);
    z-index: 2;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    outline: none;
}

.supply-pin-dot {
    position: relative;
    width: 24px;
    height: 24px;
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    background: var(--secondary);
    box-shadow: 0 9px 18px rgba(var(--primary-dark-rgb), .22);
    transform-origin: center;
    transform: rotate(-45deg);
    transition: transform .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease);
}

.supply-pin-dot::before {
    content: '';
    position: absolute;
    inset: -9px;
    border: 2px solid rgba(var(--secondary-rgb), .42);
    border-radius: 50%;
    animation: wri-pin-pulse 2.4s var(--ease) infinite;
}

.supply-pin-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), .08);
    transform: translate(-50%, -50%);
}

.supply-pin-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: max-content;
    max-width: 190px;
    border: 1px solid rgba(var(--primary-rgb), .1);
    border-radius: 6px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
    padding: 10px 12px;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, 8px);
    transition: opacity .24s var(--ease), transform .24s var(--ease);
}

.supply-pin-label strong,
.supply-pin-label small {
    display: block;
}

.supply-pin-label strong {
    font-family: var(--heading);
    font-size: 13px;
}

.supply-pin-label small {
    margin-top: 3px;
    color: #52606d;
    font-size: 11px;
    line-height: 1.35;
}

.supply-pin:hover,
.supply-pin:focus-visible,
.supply-pin.is-active {
    z-index: 5;
}

.supply-pin:hover .supply-pin-dot,
.supply-pin:focus-visible .supply-pin-dot,
.supply-pin.is-active .supply-pin-dot {
    background: var(--primary);
    box-shadow: 0 12px 24px rgba(var(--primary-dark-rgb), .28);
    transform: rotate(-45deg) scale(1.24);
}

.supply-pin:hover .supply-pin-dot::before,
.supply-pin:focus-visible .supply-pin-dot::before,
.supply-pin.is-active .supply-pin-dot::before {
    border-color: rgba(var(--secondary-rgb), .55);
}

.supply-pin:hover .supply-pin-label,
.supply-pin:focus-visible .supply-pin-label,
.supply-pin.is-active .supply-pin-label {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes wri-pin-pulse {
    0% {
        opacity: .76;
        transform: scale(.72);
    }

    80%,
    100% {
        opacity: 0;
        transform: scale(1.75);
    }
}

.quality-section {
    background: #ffffff;
}

.quality-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 54px;
    align-items: start;
}

.quality-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sustainability-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(135deg, #ffffff 0%, var(--light) 48%, rgba(var(--secondary-rgb), .1) 100%);
    color: var(--black);
}

.sustainability-section h2 {
    color: var(--primary);
}

.sustainability-section .lead-copy p {
    color: #414b56;
}

.text-link {
    position: relative;
    display: inline-flex;
    margin-top: 20px;
    color: var(--secondary);
    font-family: var(--heading);
    font-weight: 700;
    transition: color .25s var(--ease), transform .25s var(--ease);
}

.text-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(.32);
    transform-origin: left;
    transition: transform .28s var(--ease);
}

.text-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.text-link:hover::after {
    transform: scaleX(1);
}

.section-actions {
    margin-top: 26px;
}

.section-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 24px;
    padding: 9px 16px;
    border: 1px solid rgba(var(--primary-rgb), .14);
    border-radius: 3px;
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(var(--primary-dark-rgb), .07);
    font-family: var(--heading);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.section-actions .section-learn-more {
    margin-top: 0;
}

.section-learn-more:hover,
.section-learn-more:focus-visible {
    border-color: var(--secondary);
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(var(--secondary-rgb), .2);
    transform: translateY(-2px);
}

.contact-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 50px;
    padding: 50px;
    border-top: 6px solid var(--secondary);
    border-radius: 8px;
    background:
        linear-gradient(145deg, #ffffff, rgba(248,249,250,.94));
    box-shadow: var(--shadow-lg);
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), .04) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: .72;
    pointer-events: none;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-details {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    color: var(--primary);
    font-family: var(--heading);
    font-weight: 700;
}

.contact-details span {
    position: relative;
    padding-left: 18px;
}

.contact-details span::before {
    content: '';
    position: absolute;
    left: 0;
    top: .75em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(var(--secondary-rgb), .12);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    padding: 15px;
    font-family: var(--body);
    font-size: 15px;
    border-radius: 6px;
    background: rgba(255,255,255,.9);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(var(--primary-dark-rgb), .08), 0 0 0 4px rgba(var(--secondary-rgb), .13);
    outline: 0;
    transform: translateY(-2px);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--primary-dark), #061b37 72%),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    color: #ffffff;
    padding-top: 60px;
    isolation: isolate;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35));
    pointer-events: none;
}

.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 42px;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    color: #ffffff;
    font-family: var(--heading);
}

.site-footer p,
.site-footer a {
    color: #dce5ef;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    transition: color .25s var(--ease), transform .25s var(--ease);
}

.site-footer a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: 40px;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: #d7d7d7;
    text-align: center;
}

.page-hero {
    position: relative;
    padding: 118px 0 96px;
    overflow: hidden;
    color: #ffffff;
    background: var(--primary-dark);
    isolation: isolate;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,25,52,.98), rgba(11,42,84,.74), rgba(11,42,84,.42)),
        url('../images/hero-spinning.jpg') center/cover;
    transform: scale(1);
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 78px 78px;
    opacity: .42;
    mix-blend-mode: screen;
}

.page-template-page-about .page-hero::before {
    background:
        linear-gradient(90deg, rgba(7,25,52,.98), rgba(11,42,84,.74), rgba(11,42,84,.42)),
        url('../images/factory-floor.webp') center/cover;
}

.page-template-page-products .page-hero::before {
    background:
        linear-gradient(90deg, rgba(7,25,52,.98), rgba(11,42,84,.7), rgba(11,42,84,.34)),
        url('../images/yarn-cones.webp') center/cover;
}

.page-template-page-manufacturing .page-hero::before {
    background:
        linear-gradient(90deg, rgba(7,25,52,.98), rgba(11,42,84,.72), rgba(11,42,84,.34)),
        url('../images/ring-spinning.webp') center/cover;
}

.page-template-page-quality .page-hero::before {
    background:
        linear-gradient(90deg, rgba(7,25,52,.98), rgba(11,42,84,.72), rgba(11,42,84,.36)),
        url('../images/open-end.webp') center/cover;
}

.page-template-page-contact .page-hero::before {
    background:
        linear-gradient(90deg, rgba(7,25,52,.98), rgba(11,42,84,.72), rgba(11,42,84,.38)),
        url('../images/autocoro.webp') center/cover;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 820px;
    margin: 0;
    font-family: var(--heading);
    font-size: clamp(40px, 5.5vw, 68px);
    line-height: 1.05;
    text-shadow: 0 16px 44px rgba(0,0,0,.32);
}

.page-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #edf3f8;
    font-size: 19px;
}

.page-hero h1,
.page-hero p {
    opacity: 0;
    transform: translateY(24px);
    animation: wri-fade-up .85s var(--ease) forwards;
}

.page-hero h1 {
    animation-delay: .22s;
}

.page-hero p {
    animation-delay: .34s;
}

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

.content-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), .1);
    border-radius: 8px;
    background:
        linear-gradient(145deg, #ffffff, rgba(248,249,250,.92));
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(.28);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.content-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--secondary-rgb), .5);
    box-shadow: var(--shadow-md);
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-family: var(--heading);
}

.content-card p {
    margin: 0;
    color: #52606d;
}

.wri-reveal {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(34px);
    transition:
        opacity .75s var(--ease),
        filter .75s var(--ease),
        transform .75s var(--ease);
    transition-delay: var(--wri-delay, 0ms);
}

.wri-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@keyframes wri-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wri-grid-drift {
    from {
        background-position: 0 0, 0 0, 0 0;
    }

    to {
        background-position: 84px 84px, 84px 84px, 320px 320px;
    }
}

@keyframes wri-lite-loader-logo {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wri-lite-loader-line {
    to {
        transform: scaleX(1);
    }
}

@keyframes wri-lite-loader-sheen {
    to {
        transform: translateX(115%);
    }
}

@keyframes wri-lite-loader-timeout {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes wri-panel-sheen {
    from {
        background-position: 0 0, -260px 0;
    }

    to {
        background-position: 0 0, 260px 0;
    }
}

@keyframes wri-manufacturing-drift {
    from {
        background-position: center 50%;
    }

    to {
        background-position: center 54%;
    }
}

@media (max-width: 1000px) {
    .main-nav {
        gap: 18px;
    }

    .products-interactive {
        grid-template-columns: 1fr;
    }

    .product-detail-panel {
        position: static;
    }

    .supply-map-grid {
        grid-template-columns: 1fr;
    }

    .supply-map-card {
        order: -1;
    }

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

@media (max-width: 1280px) and (min-width: 901px) {
    :root {
        --site-nav-height: 76px;
    }

    .nav-wrap {
        --nav-height: var(--site-nav-height);
        --logo-box-width: 116px;
        --logo-box-height: 66px;
        padding: 0 clamp(16px, 2.4vw, 34px);
        gap: 18px;
    }

    .brand {
        gap: 10px;
    }

    .brand-text {
        font-size: 18px;
    }

    .main-nav {
        gap: 14px;
        font-size: 12px;
    }

    .main-nav .nav-cta {
        min-width: 116px;
        min-height: 40px;
        padding: 10px 16px;
    }
}

@media (max-width: 900px) {
    :root {
        --site-nav-height: 72px;
    }

    .nav-wrap {
        --nav-height: var(--site-nav-height);
        --logo-box-width: 108px;
        --logo-box-height: 62px;
        gap: 12px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        margin-left: auto;
        border-radius: 6px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 5;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        max-height: calc(100vh - var(--nav-height));
        max-height: calc(100svh - var(--nav-height));
        overflow-y: auto;
        padding: 18px max(4%, 18px) 22px;
        background: #ffffff;
        border-bottom: 1px solid rgba(var(--primary-rgb), .1);
        box-shadow: 0 18px 42px rgba(var(--primary-dark-rgb), .12);
        backdrop-filter: blur(16px);
    }

    .main-nav a {
        width: 100%;
        padding: 11px 0;
    }

    .main-nav .nav-cta {
        width: 100%;
        min-height: 48px;
        margin-top: 4px;
    }

    .main-nav.active {
        display: flex;
        animation: wri-fade-up .28s var(--ease) both;
    }

    .split-layout,
    .quality-grid,
    .contact-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 68px 0;
    }

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

    .image-panel {
        min-height: 360px;
        box-shadow: 14px 14px 0 var(--primary-dark);
    }

    .stats-grid {
        transform: translateY(-18px);
        margin-bottom: -18px;
    }
}

@media (max-width: 620px) {
    :root {
        --site-nav-height: 66px;
    }

    .container {
        width: min(1180px, calc(100% - 28px));
    }

    .nav-wrap {
        --nav-height: var(--site-nav-height);
        --logo-box-width: 78px;
        --logo-box-height: 50px;
        gap: 8px;
    }

    .brand {
        gap: 8px;
        max-width: calc(100% - 52px);
    }

    .brand-text {
        display: block;
        overflow: hidden;
        max-width: calc(100vw - 166px);
        font-size: clamp(12px, 3.4vw, 13px);
        text-overflow: ellipsis;
    }

    .menu-toggle {
        font-size: 24px;
    }

    .supply-map-grid {
        gap: 30px;
    }

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

    .supply-map-card {
        padding: 18px 10px 20px;
        box-shadow: var(--shadow-sm);
    }

    .supply-map-card::before {
        inset: 10px;
    }

    .supply-map-visual {
        width: min(100%, 330px);
    }

    .pakistan-map-labels text {
        font-size: 7.8px;
        stroke-width: 3.2px;
    }

    .supply-pin-dot {
        width: 20px;
        height: 20px;
        border-width: 2px;
        box-shadow: 0 7px 14px rgba(var(--primary-dark-rgb), .2);
    }

    .supply-pin-dot::before {
        inset: -6px;
        border-width: 1.5px;
    }

    .supply-pin-dot::after {
        width: 7px;
        height: 7px;
    }

    .supply-pin-label {
        bottom: calc(100% + 8px);
        max-width: 124px;
        padding: 7px 8px;
    }

    .supply-pin-label strong {
        font-size: 11px;
    }

    .hero-section {
        min-height: calc(100vh - 76px);
        min-height: calc(100svh - 76px);
    }

    .hero-content {
        padding: 54px 0 72px;
    }

    .hero-section h1 {
        font-size: clamp(34px, 10.5vw, 42px);
        line-height: 1.07;
    }

    .hero-text {
        font-size: 16px;
        line-height: 1.58;
    }

    h2 {
        font-size: clamp(28px, 9vw, 36px);
        line-height: 1.12;
    }

    .lead-copy p,
    .section-heading p,
    .process-panel p,
    .supply-map-copy p,
    .quality-grid p,
    .contact-card p,
    .product-detail-content p {
        font-size: 16px;
    }

    .hero-actions,
    .feature-row,
    .quality-cards {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        min-height: 50px;
    }

    .section-learn-more {
        min-height: 36px;
        margin-top: 20px;
        padding: 9px 14px;
        font-size: 11px;
    }

    .section {
        padding: 56px 0;
    }

    .stats-grid {
        transform: none;
        margin-bottom: 0;
    }

    .stats-grid div {
        padding: 22px 18px;
    }

    .product-grid,
    .product-picker-grid,
    .stats-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-panel {
        padding: 26px 22px;
    }

    .product-img {
        height: 190px;
    }

    .product-choice .product-img {
        height: 170px;
    }

    .image-panel {
        min-height: 300px;
        box-shadow: 10px 10px 0 var(--primary-dark);
    }

    .image-panel::before {
        inset: 12px;
    }

    .manufacturing-section .image-panel:hover {
        box-shadow: 10px 10px 0 var(--primary-dark);
    }

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

    .process-list::before {
        left: 20px;
    }

    .process-list li {
        min-height: 64px;
        padding-left: 58px;
    }

    .process-list li::before {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .process-list li + li::before {
        top: 22px;
    }

    .stats-grid div,
    .stats-grid div:last-child {
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }

    .contact-card {
        gap: 28px;
        padding: 24px 18px;
        box-shadow: var(--shadow-sm);
    }

    .contact-form input,
    .contact-form textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .contact-details {
        gap: 10px;
        font-size: 14px;
    }

    .footer-grid {
        gap: 26px;
    }

    .page-hero {
        padding: 72px 0 64px;
    }

    .page-hero h1 {
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.08;
    }

    .page-hero p {
        font-size: 16px;
    }

    .content-card {
        padding: 22px;
    }

    .product-detail-card .product-body {
        min-height: 0;
    }

    .product-more {
        max-height: none;
        margin-top: 16px;
        opacity: 1;
        transform: none;
    }

    .product-detail-card:hover,
    .product-detail-card:focus,
    .product-detail-card:focus-within {
        transform: none;
    }

}

@media (max-width: 380px) {
    .container {
        width: min(1180px, calc(100% - 24px));
    }

    .nav-wrap {
        --logo-box-width: 70px;
        --logo-box-height: 46px;
    }

    .brand-text {
        max-width: calc(100vw - 154px);
    }

    .hero-section h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 27px;
    }

    .btn {
        padding-inline: 18px;
        font-size: 12px;
    }

    .supply-map-visual {
        width: min(100%, 300px);
    }

    .contact-card,
    .product-detail-panel {
        padding-inline: 16px;
    }
}

@media (hover: none) and (max-width: 900px) {
    .feature-row div:hover,
    .quality-cards div:hover,
    .product-card:hover,
    .product-detail-card:hover,
    .content-card:hover,
    .supply-location-item:hover,
    .image-panel:hover,
    .process-list li:hover {
        transform: none;
    }

    .feature-row div:hover::after,
    .quality-cards div:hover::after,
    .product-card:hover::before,
    .btn:hover::after,
    .nav-cta:hover::after {
        transform: translateX(-120%);
    }

    .product-card:hover {
        border-color: rgba(var(--primary-rgb), .1);
        box-shadow: var(--shadow-sm);
    }

    .image-panel:hover,
    .manufacturing-section .image-panel:hover {
        box-shadow: 14px 14px 0 var(--primary-dark);
        filter: none;
    }
}

@media (hover: none) and (max-width: 620px) {
    .image-panel:hover,
    .manufacturing-section .image-panel:hover {
        box-shadow: 10px 10px 0 var(--primary-dark);
    }
}

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

    .hero-section h1,
    .hero-text,
    .hero-actions,
    .page-hero h1,
    .page-hero p,
    .wri-lite-loader-mark::after,
    .wri-lite-loader-mark img,
    .wri-lite-loader-line::before,
    .wri-reveal {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .wri-loader-enabled .wri-lite-loader {
        animation: wri-lite-loader-timeout .16s ease .28s forwards;
    }

    .supply-pin-dot::before {
        animation: none;
    }
}
