/* fallow-ignore-next-line unused-files — loaded by index.html / about.html / projects.html / shop.html / contact.html */
/* ═══════════════════════════════════════════════════
   KOSL — Kropp Olsha Science Lab
   v0.4.0 — Dark-forward · "Precision Instrument" visual system
   Brand: Inter, accent #4F8DFF, square edges, reticle motif
   ═══════════════════════════════════════════════════ */

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

:root {
    /* === dark-forward palette (v0.4.0) === */
    --bg: #0B0E14;
    --surface: #11151E;
    --card-bg: #161B27;
    --fg: #F5F7FB;
    --fg-muted: #8B95A7;
    --accent: #4F8DFF;
    --highlight: #5EEAD4;

    /* structural vars — remapped for dark */
    --navy: #0B0E14;
    --navy-dark: #11151E;
    --navy-darker: #161B27;
    --navy-900: #0E1118;
    --navy-950: #080A10;
    --blue: #4F8DFF;
    --blue-dark: #3D7BEF;
    --blue-light: rgba(79, 141, 255, 0.15);
    --blue-50: rgba(79, 141, 255, 0.08);
    --green-light: rgba(94, 234, 212, 0.15);
    --green-dark: #5EEAD4;
    --amber-light: rgba(251, 191, 36, 0.15);
    --amber-dark: #FBBF24;
    --gray-50: #13171F;
    --gray-100: rgba(255, 255, 255, 0.05);
    --gray-200: rgba(255, 255, 255, 0.08);
    --gray-300: rgba(255, 255, 255, 0.12);
    --gray-400: #8B95A7;
    --gray-500: #6E7A8A;
    --gray-600: #A8B2BE;
    --gray-700: #C4CDD6;
    --gray-800: #E4EAF0;
    --gray-900: #F5F7FB;
    --white: #ffffff;
    --max-w: 1120px;
    --max-w-narrow: 720px;
    --nav-h: 56px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition: 0.3s var(--ease-out-quart);
    --transition-slow: 0.5s var(--ease-out-expo);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-600);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay for tactile depth */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

/* ═══════════════ LAYOUT ═══════════════ */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 40px;
}

/* ═══════════════ NAVIGATION ═══════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(11, 14, 20, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
    background: rgba(11, 14, 20, 0.95);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.7; }

.nav-logo-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2px;
    list-style: none;
}

.nav-links a {
    display: block;
    position: relative;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-links a:hover {
    color: var(--gray-700);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--accent);
    color: var(--bg) !important;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 2px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--blue-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 78, 100, 0.25);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--accent);
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ═══════════════ PAGE HEADER ═══════════════ */

.page-header {
    background: var(--bg);
    padding: 130px 40px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, black, transparent);
    pointer-events: none;
}

/* Radial light bloom */
.page-header::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.025em;
    position: relative;
    margin-bottom: 14px;
    animation: headerFadeUp 0.6s var(--ease-out-expo) both;
}

.page-header p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    line-height: 1.7;
    animation: headerFadeUp 0.6s var(--ease-out-expo) 0.1s both;
}

.page-header .label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
    position: relative;
    animation: headerFadeUp 0.6s var(--ease-out-expo) both;
}

@keyframes headerFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ HERO (Home only) ═══════════════ */

.hero {
    position: relative;
    background: var(--bg);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 40px 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-mark {
    margin: 0 auto 32px;
    opacity: 0;
    animation: markReveal 1.2s var(--ease-out-expo) 0.1s forwards;
}

@keyframes markReveal {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 0.9; transform: scale(1); }
}

/* Slow counter-rotation on reticle rings */
.hero-mark rect:first-child {
    transform-origin: 60px 60px;
    animation: reticleRotateCW 40s linear infinite;
}

.hero-mark rect:nth-child(3) {
    transform-origin: 60px 60px;
    animation: reticleRotateCCW 28s linear infinite;
}

@keyframes reticleRotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes reticleRotateCCW {
    from { transform: rotate(45deg); }
    to { transform: rotate(-315deg); }
}

.hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    animation: fadeUp 0.7s ease 0.15s both;
}

.hero-sub {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.75;
    animation: fadeUp 0.7s ease 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.7s ease 0.45s both;
}

/* ═══════════════ BUTTONS ═══════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.015em;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    position: relative;
}

.btn-primary {
    background: var(--white);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 2px 8px rgba(79, 141, 255, 0.2);
}

.btn-navy:hover {
    background: var(--blue-dark);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 78, 100, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 78, 100, 0.15);
}

.btn-sm { padding: 8px 18px; font-size: 12.5px; }
.btn-lg { padding: 14px 36px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ═══════════════ SECTIONS ═══════════════ */

.section {
    padding: 96px 0;
    position: relative;
}

.section-alt {
    background: var(--gray-50);
}

.section-dark {
    background: var(--surface);
    color: var(--fg);
}

.section-darker {
    background: var(--card-bg);
    color: var(--fg);
}

.section-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--accent);
    display: block;
}

.section-dark .section-label,
.section-darker .section-label {
    color: rgba(255, 255, 255, 0.35);
}

.section-dark .section-label::before,
.section-darker .section-label::before {
    background: rgba(255, 255, 255, 0.2);
}

.section-heading {
    font-size: 34px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-dark .section-heading,
.section-darker .section-heading {
    color: var(--white);
}

.section-desc {
    font-size: 15.5px;
    color: var(--gray-500);
    max-width: 500px;
    line-height: 1.7;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.45);
}

.section-header {
    margin-bottom: 56px;
}

.section-header-center {
    text-align: center;
}

.section-header-center .section-label {
    justify-content: center;
}

.section-header-center .section-label::before {
    display: none;
}

.section-header-center .section-desc {
    margin: 0 auto;
}

/* ═══════════════ GRID HELPERS ═══════════════ */

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

/* ═══════════════ CARDS ═══════════════ */

.card {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    padding: 32px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition-slow), border-color var(--transition);
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(67,78,100,0.2), transparent 50%, rgba(67,78,100,0.1));
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.card:hover::before {
    opacity: 1;
}

.card-dark {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
}

.card-dark::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 50%, rgba(255,255,255,0.06));
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card-featured {
    border-color: var(--accent);
}

.card-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
}

/* ═══════════════ BADGES ═══════════════ */

.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.badge-active { background: var(--green-light); color: var(--green-dark); }
.badge-upcoming { background: var(--gray-100); color: var(--gray-500); }
.badge-dark-upcoming { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.badge-new { background: var(--blue-light); color: var(--fg); }

/* ═══════════════ TAGS ═══════════════ */

.tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--accent);
    background: var(--blue-light);
    padding: 3px 10px;
    border-radius: 2px;
    transition: background var(--transition), color var(--transition);
}

.tag:hover {
    background: var(--accent);
    color: var(--white);
}

/* ═══════════════ HOME: INTRO STRIP ═══════════════ */

.intro-strip {
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.intro-item {
    padding: 48px 32px;
    border-right: 1px solid var(--gray-200);
    transition: background var(--transition);
}

.intro-item:last-child { border-right: none; }

.intro-item:hover {
    background: var(--gray-50);
}

.intro-icon {
    margin: 0 auto 18px;
    transition: transform var(--transition);
}

.intro-item:hover .intro-icon {
    transform: scale(1.1);
}

.intro-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.intro-item span {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.55;
}

/* ═══════════════ HOME: FEATURED PRODUCTS ═══════════════ */

.product-preview-card {
    padding: 0 !important;
    overflow: hidden;
}

.product-preview-visual {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--gray-200);
    min-height: 190px;
    position: relative;
    transition: background var(--transition);
}

.product-preview-card:hover .product-preview-visual {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
}

.product-preview-visual svg {
    transition: transform var(--transition);
}

.product-preview-card:hover .product-preview-visual svg {
    transform: scale(1.08);
}

.product-preview-body {
    padding: 28px;
}

.product-preview-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.product-preview-body p {
    font-size: 13.5px;
    color: var(--gray-500);
    margin-bottom: 18px;
    line-height: 1.6;
}

.product-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-preview-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

.product-preview-price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
}

/* ═══════════════ HOME: CTA BANNER ═══════════════ */

.cta-banner {
    text-align: center;
    padding: 96px 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle grid in CTA */
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, black, transparent);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 36px;
    font-size: 15px;
    position: relative;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ═══════════════ ABOUT: TEAM ═══════════════ */

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

.team-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.team-avatar {
    width: 68px;
    height: 68px;
    border-radius: 2px;
    background: var(--surface);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.card:hover .team-avatar {
    transform: scale(1.05);
}

.team-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.team-info .role {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.team-info p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ═══════════════ ABOUT: VALUES ═══════════════ */

.value-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform var(--transition);
}

.card:hover .value-icon {
    transform: rotate(8deg) scale(1.08);
}

.value-card h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.value-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ═══════════════ ABOUT: STATS ═══════════════ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    background: var(--surface);
}

.stat-item {
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid var(--gray-200);
    transition: background var(--transition);
}

.stat-item:last-child { border-right: none; }

.stat-item:hover {
    background: var(--gray-50);
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ═══════════════ PROJECTS: TIMELINE ═══════════════ */

.timeline {
    position: relative;
    padding-left: 56px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 10px;
    bottom: 10px;
    width: 1.5px;
    background: linear-gradient(180deg, var(--navy), var(--gray-200) 20%, var(--gray-200) 80%, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 52px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -56px;
    top: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), transform var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.1);
}

.timeline-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 141, 255, 0.15);
}

.timeline-dot.active::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
}

.timeline-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-400);
}

.timeline-phase {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.timeline-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 540px;
}

.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* ═══════════════ PROJECTS: PROJECT CARDS ═══════════════ */

.project-card-icon { margin-bottom: 20px; }

.project-card-icon svg {
    transition: transform var(--transition);
}

.card:hover .project-card-icon svg {
    transform: scale(1.06);
}

.project-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.project-card .project-tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.01em;
    margin-bottom: 14px;
}

.project-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-card-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ═══════════════ SHOP: PRODUCT CARDS ═══════════════ */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.shop-card {
    display: flex;
    flex-direction: column;
}

.shop-card-visual {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-bottom: 1px solid var(--gray-200);
    padding: 52px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    transition: background var(--transition-slow);
}

.shop-card:hover .shop-card-visual {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
}

.shop-card-visual svg {
    transition: transform var(--transition);
}

.shop-card:hover .shop-card-visual svg {
    transform: scale(1.06);
}

.shop-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-status { margin-bottom: 12px; }

.shop-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.shop-card-body .shop-tagline {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.shop-card-body p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.shop-specs {
    list-style: none;
    margin-bottom: 24px;
}

.shop-specs li {
    font-size: 13px;
    color: var(--gray-600);
    padding: 7px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-specs li::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.shop-pricing {
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.shop-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
    letter-spacing: -0.02em;
}

.shop-price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    display: block;
    margin-top: 3px;
}

.shop-tiers { margin-bottom: 20px; }

.shop-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}

.shop-tier:last-child { border-bottom: none; }

.shop-tier:hover { background: var(--gray-50); margin: 0 -8px; padding: 11px 8px; border-radius: 2px; }

.shop-tier-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.shop-tier-name span {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
    display: block;
}

.shop-tier-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.01em;
}

.shop-tier-price.free { color: var(--green-dark); }

/* ═══════════════ CONTACT ═══════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-700);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    outline: none;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    margin-bottom: 18px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(79, 141, 255, 0.12);
}

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

.contact-info-card {
    padding: 24px;
    margin-bottom: 14px;
}

.contact-info-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.contact-info-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.6;
}

.contact-info-card a { font-weight: 500; }

/* ═══════════════ FOOTER ═══════════════ */

footer {
    background: var(--navy-950);
    padding: 56px 0 36px;
    position: relative;
}

/* Subtle top gradient line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 28px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.6;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-col ul a:hover { color: rgba(255, 255, 255, 0.65); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.18);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-location {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.18);
}

.footer-version {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.06em;
}

/* ═══════════════ SCROLL REVEAL ═══════════════ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal.visible .grid-2 > *,
.reveal.visible .grid-3 > *,
.reveal.visible .grid-4 > *,
.reveal.visible .intro-grid > *,
.reveal .card {
    animation: staggerIn 0.6s var(--ease-out-expo) both;
}

.reveal.visible > :nth-child(1) { animation-delay: 0s; }
.reveal.visible > :nth-child(2) { animation-delay: 0.08s; }
.reveal.visible > :nth-child(3) { animation-delay: 0.16s; }
.reveal.visible > :nth-child(4) { animation-delay: 0.24s; }

@keyframes staggerIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ ANIMATIONS ═══════════════ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.85; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 900px) {
    .grid-3, .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .team-grid, .contact-grid { grid-template-columns: 1fr; }

    .intro-grid { grid-template-columns: 1fr; }
    .intro-item { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 32px 24px; }
    .intro-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 130px 24px 90px; }
    .page-header { padding: 110px 24px 56px; }
    .page-header h1 { font-size: 34px; }
    .section { padding: 64px 0; }
    .container, .container-narrow { padding: 0 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: 1fr; }

    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(11, 14, 20, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--gray-200);
        padding: 12px 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }

    .nav-links.open a::after { display: none; }

    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-bottom: 1px solid var(--gray-200); }
    .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
    .stat-item:nth-child(2n) { border-right: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; letter-spacing: 0.02em; }
    .hero-mark { width: 80px; height: 80px; }
    .hero-sub { font-size: 14.5px; }
    .section-heading { font-size: 28px; }
    .stat-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .stat-item:last-child { border-bottom: none; }
}
