/* YUPG ELECTRIC — light default + optional .theme-dark; GPU-friendly reveals */

:root {
    --navy-deep: #061222;
    --navy: #0c2748;
    --navy-mid: #1a4a7a;
    --navy-bright: #2d6aab;
    --white: #ffffff;
    --ink: #0a1628;
    --ink-muted: #475569;
    --radius: 16px;
    --radius-lg: 22px;
    --header-h: 4.25rem;
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-duration: 0.5s;

    /* Light theme */
    --page-bg: #f3f6fb;
    --page-bg-extra: none;
    --text: #0f172a;
    --text-muted: #475569;
    --link: #1a4a7a;
    --link-hover: #0c2748;
    --section-title: #0c2748;
    --border: rgba(15, 23, 42, 0.08);
    --header-scrolled-bg: rgba(255, 255, 255, 0.94);
    --header-scrolled-border: rgba(15, 23, 42, 0.06);
    --nav-hero: #ffffff;
    --nav-scrolled: #334155;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --shadow-sm: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 48px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
    --products-bg: linear-gradient(180deg, #ffffff 0%, #e8f0fa 55%, #f3f6fb 100%);
    --products-border: rgba(15, 23, 42, 0.06);
    --card-border: rgba(15, 23, 42, 0.08);
    --about-text: #475569;
    --about-accent: #1a4a7a;
    --timeline-line: var(--navy-bright);
    --timeline-year: #0c2748;
    --timeline-dot-shadow: rgba(15, 23, 42, 0.12);
    --equipment-strip-bg: #eef3f9;
    --equipment-card-bg: #ffffff;
    --equipment-text: #0f172a;
    --equipment-muted: #475569;
    --network-card-bg: #ffffff;
    --network-card-hover: rgba(26, 74, 122, 0.08);
    --contact-bg: linear-gradient(180deg, #f3f6fb 0%, #ffffff 70%);
    --contact-aside-text: #475569;
    --form-wrap-bg: linear-gradient(165deg, #ffffff 0%, #f4f7fb 100%);
    --footer-bg: linear-gradient(180deg, #0a1f38 0%, #061222 100%);
    --blur-nav: blur(12px);
    --glass-backdrop: none;
    --metric-bg: rgba(255, 255, 255, 0.14);
    --metric-border: rgba(255, 255, 255, 0.28);
    --mobile-nav-bg: rgba(255, 255, 255, 0.98);
    --mobile-nav-border: rgba(15, 23, 42, 0.08);
    --mobile-nav-link: #0f172a;
    --lang-scrolled-bg: #ffffff;
    --quality-bg: linear-gradient(180deg, #ffffff 0%, #f0f5fc 100%);
    --app-bg: linear-gradient(180deg, #f8fafc 0%, #eef4fc 100%);
}

html.theme-dark {
    --page-bg: #040a14;
    --page-bg-extra: radial-gradient(ellipse 130% 70% at 50% -25%, rgba(61, 126, 196, 0.22), transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 15%, rgba(26, 74, 122, 0.18), transparent 50%),
        radial-gradient(ellipse 50% 42% at 0% 55%, rgba(12, 39, 72, 0.32), transparent 50%);
    --text: #e8eef5;
    --text-muted: #94a8bc;
    --link: #8ec5ff;
    --link-hover: #ffffff;
    --section-title: #f1f5f9;
    --border: rgba(255, 255, 255, 0.12);
    --header-scrolled-bg: rgba(4, 10, 20, 0.88);
    --header-scrolled-border: rgba(255, 255, 255, 0.08);
    --nav-scrolled: rgba(255, 255, 255, 0.88);
    --surface: rgba(255, 255, 255, 0.055);
    --surface-elevated: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.45);
    --products-bg: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 50%, transparent 100%);
    --products-border: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.14);
    --about-text: #94a8bc;
    --about-accent: #7eb8f0;
    --timeline-year: #f1f5f9;
    --timeline-dot-shadow: rgba(4, 10, 20, 0.9);
    --equipment-strip-bg: rgba(0, 0, 0, 0.2);
    --equipment-card-bg: rgba(255, 255, 255, 0.06);
    --equipment-text: #e8eef5;
    --equipment-muted: #94a8bc;
    --network-card-bg: rgba(255, 255, 255, 0.055);
    --network-card-hover: rgba(142, 197, 255, 0.15);
    --contact-bg: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
    --contact-aside-text: #94a8bc;
    --glass-backdrop: blur(14px);
    --blur-nav: blur(16px);
    --metric-bg: rgba(255, 255, 255, 0.1);
    --metric-border: rgba(255, 255, 255, 0.2);
    --mobile-nav-bg: rgba(4, 10, 20, 0.97);
    --mobile-nav-border: rgba(255, 255, 255, 0.1);
    --mobile-nav-link: rgba(255, 255, 255, 0.92);
    --lang-scrolled-bg: rgba(255, 255, 255, 0.08);
    --quality-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 100%);
    --app-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.15) 100%);
}

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

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--page-bg);
    background-image: var(--page-bg-extra);
    background-attachment: fixed;
}

main {
    position: relative;
}

h1,
h2,
h3,
.brand {
    font-family: var(--font-display);
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--navy-deep);
    color: var(--white);
    z-index: 1000;
    border-radius: 8px;
}

.skip-link:focus {
    left: 0.5rem;
}

.wrap {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

/* ----- Reveal (GPU: transform + opacity only; no Motion JS) ----- */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out);
}

[data-reveal="fade"] {
    transform: translate3d(0, 0, 0);
}

[data-reveal="row"] {
    transform: translate3d(-12px, 0, 0);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.metrics .metric {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.metrics.is-visible .metric {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.metrics.is-visible .metric:nth-child(1) {
    transition-delay: 0s;
}
.metrics.is-visible .metric:nth-child(2) {
    transition-delay: 0.05s;
}
.metrics.is-visible .metric:nth-child(3) {
    transition-delay: 0.1s;
}
.metrics.is-visible .metric:nth-child(4) {
    transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal].is-visible,
    .metrics .metric,
    .metrics.is-visible .metric {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: var(--header-scrolled-bg);
    backdrop-filter: var(--blur-nav);
    -webkit-backdrop-filter: var(--blur-nav);
    box-shadow: 0 1px 0 var(--header-scrolled-border);
}

.site-header:not(.is-scrolled) {
    background: transparent;
}

.header-inner {
    width: min(1200px, 94vw);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--nav-hero);
    text-decoration: none;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled .brand {
    color: var(--text);
    text-shadow: none;
}

.brand-mark {
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
    color: var(--white);
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav > a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
}

.site-header.is-scrolled .site-nav > a {
    color: var(--nav-scrolled);
}

.site-header.is-scrolled .site-nav > a:hover {
    color: var(--link);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--nav-hero);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.site-header.is-scrolled .theme-toggle {
    color: var(--nav-scrolled);
    border-color: var(--border);
    background: var(--lang-scrolled-bg);
}

html.theme-dark .site-header.is-scrolled .theme-toggle {
    color: rgba(255, 255, 255, 0.9);
    border-color: var(--border);
    background: var(--surface-elevated);
}

.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--nav-hero);
    border-radius: 2px;
    transition: background 0.2s;
}

.site-header.is-scrolled .nav-toggle-bar {
    background: var(--text);
}

.lang-wrap {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: var(--nav-hero);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.site-header.is-scrolled .lang-btn {
    color: var(--nav-scrolled);
    border-color: var(--border);
    background: var(--lang-scrolled-bg);
}

.lang-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 220px;
    max-height: min(60vh, 420px);
    overflow: auto;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.lang-panel a {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--ink);
    font-size: 0.88rem;
    text-decoration: none;
}

.lang-panel a:hover,
.lang-panel a[aria-current="true"] {
    background: #e8f0fa;
    color: var(--navy);
}

/* Hero */
.hero {
    position: relative;
    min-height: min(92vh, 900px);
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    color: var(--white);
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--navy-deep);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    opacity: 0.82;
    filter: saturate(1.02) brightness(0.92);
}

/* Edge soften + vignette (no heavy blur on full bitmap) */
.hero-edge {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 65% at 20% 45%, rgba(4, 10, 20, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 95% 90% at 50% 50%, transparent 40%, rgba(4, 10, 20, 0.75) 100%),
        linear-gradient(90deg, rgba(4, 10, 20, 0.55) 0%, transparent 35%, transparent 65%, rgba(4, 10, 20, 0.4) 100%);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(4, 10, 20, 0.88) 0%, rgba(10, 31, 56, 0.5) 42%, rgba(4, 10, 20, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-h) + 3rem);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-title {
    font-size: clamp(2.1rem, 4.5vw, 3.35rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    max-width: 18ch;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-sub {
    max-width: 52ch;
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(145deg, var(--navy-bright), var(--navy-mid) 55%, var(--navy));
    color: var(--white);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 12px 36px rgba(61, 126, 196, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

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

.metric {
    background: var(--metric-bg);
    border: 1px solid var(--metric-border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.metric-val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
}

.metric-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
}

/* Sections */
.section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-head--left {
    text-align: left;
    margin-left: 0;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin: 0 0 0.75rem;
    color: var(--section-title);
    letter-spacing: -0.02em;
}

.section-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.section-head--decor h2 {
    position: relative;
}

.section-head--decor h2::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    margin-top: 0.65rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--navy-bright), var(--navy-mid), rgba(45, 106, 171, 0.35));
}

.section-head--decor:not(.section-head--left) h2::after {
    margin-left: auto;
    margin-right: auto;
}

.section-head--left.section-head--decor h2::after {
    margin-left: 0;
}

/* Products */
.products {
    background: var(--products-bg);
    border-block: 1px solid var(--products-border);
}

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

.product-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html:not(.theme-dark) .product-card {
    background: var(--white);
}

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

.product-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.product-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(4, 10, 20, 0.07) 100%);
    pointer-events: none;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-card-media img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.35rem 1.5rem 1.6rem;
    position: relative;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--navy-bright), transparent) 1;
}

.product-card--composite {
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(14, 165, 233, 0.12);
}

.product-card--porcelain {
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(100, 116, 139, 0.2);
}

.product-card--glass {
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.product-card--hardware {
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.product-card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.product-card-icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    position: relative;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.product-card--composite .product-card-icon {
    background: linear-gradient(145deg, #0ea5e9, #0369a1);
}

.product-card--porcelain .product-card-icon {
    background: linear-gradient(145deg, #64748b, #334155);
}

.product-card--glass .product-card-icon {
    background: linear-gradient(145deg, #38bdf8, #0284c7);
}

.product-card--hardware .product-card-icon {
    background: linear-gradient(145deg, #f59e0b, #b45309);
}

.product-card-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

html.theme-dark .product-card-body h3 {
    color: #e8eef5;
}

.product-card-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About */
.about-copy p {
    color: var(--about-text);
}

.about-h3 {
    font-size: 1.15rem;
    color: var(--about-accent);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 2rem 2.25rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.about-figure {
    margin: 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    flex: 1;
    min-height: 280px;
    display: flex;
}

.about-figure-frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(45, 106, 171, 0.35);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.about-figure-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
}

.about-side-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.about-side-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html:not(.theme-dark) .about-side-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 100%);
}

.about-side-card:hover {
    border-color: rgba(45, 106, 171, 0.35);
    box-shadow: var(--shadow-md);
}

.about-side-card--0 {
    border-left: 4px solid var(--navy-bright);
}

.about-side-card--1 {
    border-left: 4px solid #0ea5e9;
}

.about-side-card--2 {
    border-left: 4px solid #059669;
}

.about-side-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(45, 106, 171, 0.15), rgba(26, 74, 122, 0.08));
    color: var(--navy-bright);
}

.about-side-card__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.about-side-card__body {
    min-width: 0;
}

.about-side-card__body strong {
    display: block;
    font-size: 0.95rem;
    color: var(--section-title);
    margin-bottom: 0.2rem;
}

.about-side-card__body p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.timeline-block {
    margin-bottom: 3rem;
}

.timeline-block--shell {
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(165deg, rgba(45, 106, 171, 0.06) 0%, transparent 55%);
    box-shadow: var(--shadow-sm);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 0.5rem;
    border-left: 3px solid var(--timeline-line);
}

.timeline-item {
    position: relative;
    padding: 0 0 1.25rem 1.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.55rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--navy-bright), var(--navy-mid));
    box-shadow: 0 0 0 3px var(--timeline-dot-shadow), 0 0 12px rgba(61, 126, 196, 0.35);
}

.timeline-year {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--timeline-year);
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-item p {
    margin: 0;
    color: var(--text-muted);
}

.equipment {
    background: var(--equipment-strip-bg);
    padding: clamp(3rem, 6vw, 4rem) 0;
    border-block: 1px solid var(--border);
}

.equipment-grid {
    display: grid;
    gap: 1.75rem;
}

.equipment-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 0;
    align-items: stretch;
    background: var(--equipment-card-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.equipment-card--alt {
    background: var(--equipment-card-bg);
}

html.theme-dark .equipment-card--alt {
    background: rgba(255, 255, 255, 0.08);
}

.equipment-media {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.equipment-media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.equipment-badge {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    z-index: 2;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-bright), #0c4a7a);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.equipment-badge--alt {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.equipment-body {
    padding: 1.5rem 1.75rem;
}

.equipment-body h3 {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
    color: var(--equipment-text);
}

.equipment-body p {
    margin: 0;
    color: var(--equipment-muted);
    font-size: 0.96rem;
}

/* Quality & certifications */
.quality {
    background: var(--quality-bg);
    border-block: 1px solid var(--border);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.quality-card {
    position: relative;
    padding: 1.5rem 1.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.quality-card-ring {
    position: absolute;
    top: -45%;
    right: -30%;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    border: 2px solid rgba(45, 106, 171, 0.14);
    pointer-events: none;
}

html.theme-dark .quality-card-ring {
    border-color: rgba(142, 197, 255, 0.12);
}

.quality-card:nth-child(2) .quality-card-ring {
    border-color: rgba(14, 165, 233, 0.18);
}

.quality-card:nth-child(3) .quality-card-ring {
    border-color: rgba(5, 150, 105, 0.16);
}

html:not(.theme-dark) .quality-card {
    background: var(--white);
}

.quality-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quality-icon {
    position: relative;
    z-index: 1;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, rgba(45, 106, 171, 0.15), rgba(26, 74, 122, 0.08));
    border: 1px solid var(--border);
}

.quality-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    color: var(--section-title);
}

.quality-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Applications */
.applications {
    background: var(--app-bg);
    border-block: 1px solid var(--border);
}

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

.app-card {
    position: relative;
    padding: 1.35rem 1rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html:not(.theme-dark) .app-card {
    background: var(--white);
}

.app-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--app-accent, linear-gradient(90deg, var(--navy-bright), var(--navy-mid)));
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.app-card__glyph {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    margin-bottom: 0.55rem;
    opacity: 0.88;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12));
}

.app-card--a .app-card__glyph {
    color: #2563eb;
}

.app-card--b .app-card__glyph {
    color: #059669;
}

.app-card--c .app-card__glyph {
    color: #d97706;
}

.app-card--d .app-card__glyph {
    color: #7c3aed;
}

.app-card--e .app-card__glyph {
    color: #0284c7;
}

html.theme-dark .app-card__glyph {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.app-card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    color: var(--section-title);
}

.app-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.app-card--a {
    --app-accent: linear-gradient(90deg, #2563eb, #1d4ed8);
}
.app-card--b {
    --app-accent: linear-gradient(90deg, #059669, #047857);
}
.app-card--c {
    --app-accent: linear-gradient(90deg, #d97706, #b45309);
}
.app-card--d {
    --app-accent: linear-gradient(90deg, #7c3aed, #5b21b6);
}
.app-card--e {
    --app-accent: linear-gradient(90deg, #0ea5e9, #0369a1);
}

/* Network */
.network {
    background: transparent;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.network-card {
    padding: 1.75rem 1.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--network-card-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.network-card:hover {
    border-color: var(--network-card-hover);
    box-shadow: var(--shadow-md);
}

.network-card h3,
.network-card__title {
    margin: 0 0 0.75rem;
    color: var(--section-title);
    font-size: 1.1rem;
}

.network-card__title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.network-card__svg {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    color: var(--navy-bright);
}

html.theme-dark .network-card__svg {
    color: #7dd3fc;
}

.network-card p,
.network-list {
    margin: 0;
    color: var(--text-muted);
}

.network-list {
    padding-left: 1.1rem;
}

.network-list li {
    margin-bottom: 0.35rem;
}

.network-list li::marker {
    color: var(--navy-bright);
}

/* Contact */
.contact {
    background: var(--contact-bg);
    border-top: 1px solid var(--border);
}

.contact-aside .section-head h2,
.contact-aside .section-lead {
    color: inherit;
}

.contact-aside .section-head h2 {
    color: var(--section-title);
}

.contact-aside .section-lead {
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-dl {
    margin: 1.5rem 0 0;
}

.contact-dl dt {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy-bright);
    margin-top: 1rem;
}

.contact-dl dt:first-child {
    margin-top: 0;
}

.contact-dl dd {
    margin: 0.25rem 0 0;
    color: var(--contact-aside-text);
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.contact-form-wrap {
    background: var(--form-wrap-bg);
    border-radius: var(--radius-lg);
    padding: 1.85rem 1.85rem 2.1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-form-wrap--decor {
    border: 2px solid transparent;
    background-image: linear-gradient(165deg, #ffffff 0%, #f4f7fb 100%),
        linear-gradient(135deg, var(--navy-bright) 0%, #0ea5e9 45%, rgba(45, 106, 171, 0.45) 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-md), 0 12px 40px rgba(26, 74, 122, 0.12);
}

html.theme-dark .contact-form-wrap--decor {
    background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(135deg, #3b82f6 0%, #0ea5e9 50%, rgba(56, 189, 248, 0.35) 100%);
    box-shadow: var(--shadow-md), 0 12px 36px rgba(0, 0, 0, 0.35);
}

.form-title {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: var(--ink);
}

.form-status {
    min-height: 1.25rem;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--navy-mid);
}

.form-status.is-error {
    color: #b91c1c;
}

.inquiry-form .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

.inquiry-form .field > span {
    font-weight: 500;
    color: var(--ink);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    font: inherit;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--ink);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: 2px solid rgba(26, 74, 122, 0.35);
    outline-offset: 1px;
    background: var(--white);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.88);
    padding: 2.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    width: min(1120px, 92vw);
    margin-inline: auto;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.footer-brand .brand-mark {
    margin-right: 0.35rem;
}

.footer-social {
    margin: 1.5rem 0 1.25rem;
}

.footer-social-title {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.55);
}

.footer-social-hint {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 36rem;
    margin-inline: auto;
    line-height: 1.45;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.social-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.social-brand:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    filter: brightness(1.08);
}

.social-brand svg {
    width: 1.9rem;
    height: 1.9rem;
    display: block;
}

.social-brand--x {
    background: #fff;
}

.social-brand--x svg {
    fill: #000;
}

.social-brand--facebook {
    background: #1877f2;
}

.social-brand--facebook svg {
    fill: #fff;
}

.social-brand--instagram {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.social-brand--instagram svg {
    fill: #fff;
}

.social-brand--tiktok {
    background: #000;
    border-color: rgba(255, 255, 255, 0.2);
}

.social-brand--tiktok svg .tik-cyan {
    fill: #25f4ee;
}

.social-brand--tiktok svg .tik-red {
    fill: #fe2c55;
}

.social-brand--tiktok svg .tik-w {
    fill: #fff;
}

.social-brand--linkedin {
    background: #0a66c2;
}

.social-brand--linkedin svg {
    fill: #fff;
}

.social-brand--meta {
    background: linear-gradient(135deg, #0668e1 0%, #0082fb 50%, #a033ff 100%);
}

.social-brand--meta svg {
    fill: #fff;
}

.social-brand--youtube {
    background: #ff0000;
}

.social-brand--youtube svg {
    fill: #fff;
    width: 2.25rem;
    height: 2.25rem;
}

.social-brand--wechat {
    background: #07c160;
}

.social-brand--wechat svg {
    fill: #fff;
}

.social-brand--whatsapp {
    background: #25d366;
}

.social-brand--whatsapp svg {
    fill: #fff;
}

.footer-tagline {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: 0;
}

.footer-copy,
.footer-legal {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Cookie */
.cookie-bar {
    position: fixed;
    z-index: 1100;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(520px, 92vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: rgba(6, 18, 34, 0.95);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-bar.is-dismissed {
    display: none !important;
}

.cookie-bar .btn {
    flex-shrink: 0;
    background: var(--white);
    color: var(--navy);
    border: none;
    box-shadow: none;
    transform: none;
}

.cookie-bar .btn:hover {
    background: #e8f0fa;
    transform: none;
}

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

::selection {
    background: rgba(61, 126, 196, 0.35);
    color: inherit;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 960px) {
    .about-grid,
    .equipment-card,
    .contact-grid,
    .product-grid,
    .network-grid {
        grid-template-columns: 1fr;
    }

    .equipment-media img {
        min-height: 200px;
    }

    .equipment-body {
        padding: 0 1.25rem 1.5rem;
    }

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

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

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: var(--mobile-nav-bg);
        backdrop-filter: var(--blur-nav);
        -webkit-backdrop-filter: var(--blur-nav);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.25rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--mobile-nav-border);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
    }

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

    .site-nav > a {
        color: var(--mobile-nav-link);
        padding: 0.55rem 0.5rem;
        border-radius: 8px;
    }

    .site-nav > a:hover {
        background: var(--network-card-hover);
    }

    .theme-toggle {
        align-self: flex-start;
    }

    .lang-wrap {
        margin-top: 0.35rem;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-panel {
        position: static;
        max-height: 200px;
        margin-top: 0.5rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: unset;
        padding-bottom: 3rem;
    }

    .quality-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }
}
