/* =========================================================
   Mesay Tulu — design tokens
   Brand identity pulled directly from the company logo:
   deep engine-blue + white, condensed display type, mono part-codes.

   --ink / --ink-line / --text-invert*: the constant "brand-blue"
   surfaces (hero, company reel, contact, footer) — these stay the
   same in both themes, same as the logo is always blue.

   --paper / --surface / --line / --text*: the "reading" surfaces
   that flip between light and dark via the theme toggle.
   ========================================================= */
:root {
    /* brand-blue surfaces (constant across themes) */
    --ink: #0b3f78;
    --ink-soft: #0f4a8c;
    --ink-line: rgba(255, 255, 255, .14);
    --text-invert: #ffffff;
    --text-invert-soft: #c3d8f0;

    /* accent */
    --brand: #105dad;
    --brand-soft: #e2ecfa;
    --on-dark: #ffffff;
    --on-dark-soft: rgba(255, 255, 255, .14);

    /* reading surfaces — theme-able */
    --paper: #f2f5fa;
    --surface: #ffffff;
    --line: #dde5f0;
    --text: #0b2340;
    --text-soft: #56637a;

    --font-display: "Barlow Condensed", "Inter", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(11, 35, 64, .07), 0 1px 1px rgba(11, 35, 64, .05);
    --shadow-md: 0 10px 30px rgba(11, 35, 64, .12);
    --shadow-lg: 0 24px 60px rgba(11, 35, 64, .20);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --nav-h: 74px;

    color-scheme: light;
}

[data-theme="dark"] {
    --paper: #0b1728;
    --surface: #102438;
    --line: rgba(255, 255, 255, .10);
    --text: #eaf1fb;
    --text-soft: #9db0c9;
    --brand-soft: rgba(16, 93, 173, .28);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .38);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);

    color-scheme: dark;
}

[data-theme="dark"] body {
    background: var(--paper);
}

/* smooth theme transition */
body,
.navbar,
.tenet-card,
.product-card,
.media-frame,
.contact-card,
.section,
.btn,
.nav-link,
.footer {
    transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

::selection {
    background: var(--brand);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.hero :focus-visible,
.section-dark :focus-visible,
.footer :focus-visible {
    outline-color: var(--on-dark);
}

/* =========================================================
   scroll progress hairline
   ========================================================= */
.hairline-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--brand);
    z-index: 900;
    transition: width .1s linear;
}

/* =========================================================
   eyebrow / section title system
   ========================================================= */
.eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 10px;
}

.section-dark .eyebrow,
.hero .eyebrow {
    color: #bcd8f7;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .01em;
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.02;
    margin: 0 0 14px;
    color: var(--text);
}

.section-dark .section-title,
.hero .section-title {
    color: var(--text-invert);
}

.section-lede {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 46ch;
    margin: 0 0 40px;
}

.section-dark .section-lede {
    color: var(--text-invert-soft);
}

.section {
    padding: 108px 0;
    position: relative;
}

.section-dark {
    background: var(--ink);
    color: var(--text-invert);
}

.section-tint {
    background: var(--surface);
}

/* =========================================================
   reveal-on-scroll
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--on-dark);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.btn-primary:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, .32);
}

.btn-ghost {
    background: transparent;
    color: var(--text-invert);
    border-color: var(--ink-line);
}

.btn-ghost:hover {
    border-color: var(--on-dark);
    color: var(--on-dark);
}

.btn-install {
    background: var(--ink-soft);
    color: var(--text-invert);
    padding: 10px 18px;
    font-size: .85rem;
}

.btn-install:hover {
    background: var(--on-dark);
    color: var(--ink);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ink-line);
    background: transparent;
    color: var(--text-invert);
    cursor: pointer;
    font-size: .95rem;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.theme-toggle:hover {
    background: var(--on-dark);
    color: var(--ink);
    border-color: var(--on-dark);
}

.theme-toggle .icon-moon {
    display: inline-block;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: inline-block;
}

/* =========================================================
   navbar
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 800;
    background: rgba(11, 63, 120, 0);
    border-bottom: 1px solid transparent;
    transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}

.navbar.is-scrolled {
    background: rgba(11, 40, 74, .86);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--ink-line);
}

.nav-inner {
    height: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    height: 38px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-family: var(--font-display);
    color: var(--text-invert);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .01em;
    text-transform: uppercase;
    line-height: 1.05;
    white-space: nowrap;
}

.brand-name em {
    display: block;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-invert-soft);
    font-weight: 500;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-invert-soft);
    position: relative;
    padding: 6px 0;
    transition: color .2s var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--on-dark);
    transition: width .25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-invert);
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-invert);
    margin: 0 auto;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   index rail (desktop signature nav)
   ========================================================= */
.index-rail {
    position: fixed;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 700;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.index-rail a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 7px 4px;
    opacity: .55;
    transition: opacity .25s var(--ease);
}

.index-rail a:hover,
.index-rail a.is-active {
    opacity: 1;
}

.rail-code {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--text-invert-soft);
    background: rgba(18, 22, 29, .55);
    backdrop-filter: blur(6px);
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: .04em;
}

.index-rail a.is-active .rail-code {
    background: var(--brand);
    color: #fff;
}

.rail-label {
    font-size: .74rem;
    color: var(--text-invert);
    background: var(--ink);
    padding: 3px 9px;
    border-radius: 4px;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width .25s var(--ease), opacity .25s var(--ease);
}

.index-rail a:hover .rail-label {
    max-width: 110px;
    opacity: 1;
}

@media (max-width: 1180px) {
    .index-rail {
        display: none;
    }
}

/* =========================================================
   hero
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(155deg, #0a3766 0%, var(--ink) 46%, var(--brand) 130%);
    color: var(--text-invert);
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 10%, transparent 75%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: var(--nav-h);
    max-width: 760px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: .96;
    margin: 0 0 22px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-invert-soft);
    max-width: 52ch;
    margin: 0 0 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-cue {
    position: absolute;
    left: 28px;
    bottom: 34px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: var(--text-invert-soft);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.scroll-cue i {
    animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* =========================================================
   company reel
   ========================================================= */
.reel {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.reel-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-line);
}

.reel-track {
    display: flex;
    transition: transform .55s var(--ease);
}

.reel-slide {
    position: relative;
    min-width: 100%;
    aspect-ratio: 16 / 8.2;
}

.reel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel-caption {
    position: absolute;
    left: 20px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.reel-index {
    font-family: var(--font-mono);
    font-size: .68rem;
    background: var(--brand);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .05em;
}

.reel-nav {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(18, 22, 29, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s var(--ease), transform .25s var(--ease);
}

.reel-nav:hover {
    background: var(--on-dark);
    color: var(--ink);
    transform: translateY(-50%) scale(1.06);
}

.reel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.reel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink-line);
    cursor: pointer;
    transition: background .25s var(--ease), transform .25s var(--ease);
}

.reel-dots .dot.active {
    background: var(--on-dark);
    transform: scale(1.25);
}

/* =========================================================
   about
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.about-media {
    position: relative;
}

.media-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--line);
    box-shadow: var(--shadow-md);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity .5s var(--ease);
}

.media-frame.is-loaded img {
    opacity: 1;
}

.media-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--line) 30%, #eef0f3 50%, var(--line) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
}

.media-frame.is-loaded .media-skeleton {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.about-copy p {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.stat-row {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px dashed var(--line);
    flex-wrap: wrap;
}

.stat-item {
    min-width: 100px;
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--text);
    line-height: 1;
    display: block;
}

.stat-number::after {
    content: "+";
    color: var(--brand);
}

.stat-item p {
    margin: 6px 0 0;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-soft);
    font-weight: 600;
}

/* =========================================================
   tenet cards (mission/vision/goals)
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 20px;
}

.tenet-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.tenet-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.tenet-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 22px;
}

.tenet-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.tenet-card h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: .01em;
    margin: 0 0 12px;
}

.tenet-card p {
    color: var(--text-soft);
    margin: 0;
    font-size: .96rem;
}

/* =========================================================
   products
   ========================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--paper);
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.product-thumb img.is-loaded {
    opacity: 1;
}

.product-card:hover .product-thumb img.is-loaded {
    transform: scale(1.06);
}

.product-thumb .thumb-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--line) 30%, #f4f5f7 50%, var(--line) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
}

.product-thumb img.is-loaded+.thumb-skeleton {
    display: none;
}

.product-code {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .05em;
    background: rgba(18, 22, 29, .78);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.product-info {
    padding: 14px 16px 16px;
}

.product-info h4 {
    margin: 0;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .01em;
    font-size: 1.05rem;
}

.product-card {
    cursor: pointer;
}

.product-price {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: .82rem;
    font-weight: 600;
    color: var(--brand);
}

.product-desc {
    margin: 6px 0 0;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-img-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .04em;
    background: rgba(18, 22, 29, .78);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-soft);
}

.product-placeholder i {
    font-size: 1.6rem;
    opacity: .35;
}

.product-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
}

.spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-right: 6px;
    vertical-align: -2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* category filter chips above the product grid */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.category-chip {
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.category-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.category-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--text-invert);
}

/* =========================================================
   product lightbox
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 14, 24, .82);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease);
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-card {
    width: min(880px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(14px);
    transition: transform .25s var(--ease);
}

.lightbox.is-open .lightbox-card {
    transform: translateY(0);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(18, 22, 29, .78);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.lightbox-main-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--paper);
    overflow: hidden;
}

.lightbox-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--paper);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(18, 22, 29, .6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lightbox-nav.prev {
    left: 12px;
}

.lightbox-nav.next {
    right: 12px;
}

.lightbox-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
}

.lightbox-thumbs img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .6;
    flex: none;
}

.lightbox-thumbs img.is-active {
    border-color: var(--brand);
    opacity: 1;
}

.lightbox-body {
    padding: 8px 24px 26px;
}

.lightbox-body .category-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .05em;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.lightbox-body h3 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.4rem;
}

.lightbox-body .product-price {
    font-size: 1rem;
    margin-bottom: 10px;
}

.lightbox-body p {
    color: var(--text-soft);
    line-height: 1.6;
    font-size: .92rem;
    white-space: pre-line;
}

/* =========================================================
   contact
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: .95fr 1.3fr;
    gap: 40px;
    align-items: stretch;
}

.contact-card {
    background: var(--ink-soft);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-lg);
    padding: 10px;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    font-size: .98rem;
    color: var(--text-invert);
    transition: background .2s var(--ease);
}

.contact-list li+li {
    border-top: 1px solid var(--ink-line);
}

.contact-row:not(.contact-row--static):hover {
    background: rgba(255, 255, 255, .05);
}

.contact-row i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--on-dark-soft);
    color: var(--on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-row--static {
    cursor: default;
}

.map-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--ink-line);
    box-shadow: var(--shadow-lg);
}

.map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =========================================================
   footer
   ========================================================= */
.footer {
    background: #082548;
    color: var(--text-invert-soft);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-mark {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-brand .brand-name {
    color: var(--text-invert);
    font-size: 1.3rem;
}

.footer-brand p {
    font-size: .88rem;
    margin-top: 10px;
}

.footer-col h4 {
    color: var(--text-invert);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 1rem;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .2s var(--ease);
}

.footer-col a:hover {
    color: var(--on-dark);
}

.footer-col a i {
    font-size: .7rem;
    color: #7cb0e8;
}

.footer-col p {
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.footer-col p i {
    color: #7cb0e8;
    width: 16px;
}

.copyright {
    border-top: 1px solid var(--ink-line);
    text-align: center;
    padding: 22px 0;
    font-size: .8rem;
}

/* =========================================================
   toast
   ========================================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: var(--ink);
    color: var(--text-invert);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast i {
    color: #7cb0e8;
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .media-frame {
        aspect-ratio: 16 / 10;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        right: 0;
        width: min(320px, 84vw);
        height: calc(100vh - var(--nav-h));
        background: rgba(18, 22, 29, .97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 24px;
        transform: translateX(100%);
        transition: transform .35s var(--ease);
        border-left: 1px solid var(--ink-line);
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 14px 4px;
        font-size: 1.05rem;
    }

    .install-item {
        margin-top: 10px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 76px 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 13vw, 3.6rem);
    }

    .stat-row {
        gap: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-name em {
        display: none;
    }
}