/* KSM × TECH / BASE STYLES */


:root {
    /* Core palette — warm dark with editorial restraint */
    --bg: #0d0a08;
    --bg-soft: #14110e;
    --bg-elevated: #1a1612;
    --paper: #f5efe4;
    --paper-soft: #ddd4c4;
    --paper-mid: #a8a094;
    --paper-dim: #6b6457;
    --line: #2a241e;
    --line-bright: #3d342a;

    /* Accents */
    --gold: #c9a55a;
    --gold-soft: #d4b370;
    --gold-deep: #8c7235;
    --peacock: #2d5556;
    --peacock-soft: #3a6b6c;
    --crimson: #a8484f;

    /* Type */
    --display: 'Cormorant Garamond', Georgia, serif;
    --body: 'Newsreader', Georgia, serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --devanagari: 'Noto Serif Devanagari', serif;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    background: var(--bg);
    color: var(--paper);
    font-family: var(--body);
    font-weight: 400;
    line-height: 1.65;
    font-size: 17px;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 15% 8%, rgba(201, 165, 90, 0.04) 0%, transparent 45%),
        radial-gradient(at 85% 75%, rgba(45, 85, 86, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Subtle film-grain overlay across entire site */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.94 0 0 0 0 0.85 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ─── CONTAINER ──────────────────────────────────────── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .container { padding: 0 22px; }
}

/* ─── HEADER ─────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
    border-bottom: 1px solid transparent;
    animation: slideDown 1s var(--ease-out) both;
}

.header.scrolled {
    padding: 16px 32px;
    background: rgba(13, 10, 8, 0.85);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom-color: var(--line);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--paper);
    line-height: 1;
}

.logo-mark {
    width: 28px;
    height: 28px;
    color: var(--gold);
    transition: transform 0.6s var(--ease-out);
}

.logo:hover .logo-mark { transform: rotate(45deg); }

.logo-text {
    font-family: var(--display);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.01em;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-x {
    color: var(--gold);
    font-weight: 300;
    font-style: italic;
    font-size: 0.85em;
    margin: 0 2px;
}

.logo-tech { font-weight: 400; }

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-mid);
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav a:hover { color: var(--paper); }

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out);
}

.nav a:hover::after { width: 100%; }

.nav-cta {
    color: var(--paper) !important;
    border: 1px solid var(--line-bright);
    padding: 8px 18px !important;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--paper);
    color: var(--bg) !important;
    border-color: var(--paper);
}

.nav-cta::after { display: none; }

.nav-new {
    color: var(--gold) !important;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-sub {
    display: block;
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.55;
    font-weight: 400;
}

.nav-new::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    top: -2px;
    right: -8px;
    box-shadow: 0 0 6px rgba(201, 165, 90, 0.5);
}

@media (max-width: 768px) {
    .header { padding: 18px 22px; }
    .header.scrolled { padding: 14px 22px; }
    .nav { gap: 16px; }
    .nav a:not(.nav-cta) { display: none; }
}



/* ─── COMMON ANIMATIONS ───────────────────────────────── */
@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 0.5; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── FOOTER ───────────────────────────────────────── */
.footer {
    background: var(--bg-soft);
    padding: 80px 0 36px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }
}

.footer-logo {
    font-family: var(--display);
    font-weight: 600;
    font-size: 28px;
    color: var(--paper);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.footer-x { color: var(--gold); font-weight: 300; font-style: italic; margin: 0 4px; }

.footer-tagline {
    font-size: 14px;
    color: var(--paper-mid);
    line-height: 1.6;
    max-width: 320px;
}

.footer-col-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--paper-soft);
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--paper); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 18px;
}

.copyright {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--paper-dim);
}

.footer-mantra .devanagari {
    font-family: var(--devanagari);
    font-size: 16px;
    color: var(--gold-deep);
    letter-spacing: 0.02em;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
    will-change: opacity, transform;
}

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


/* ─── REDUCED MOTION ───────────────────────────────── */
/* Intentionally removed blanket animation kill —
   site animations are decorative and essential to the design. */

/* ──────────────────────────────────────────────────────────
   PRODUCT PAGES — Shared base
   ────────────────────────────────────────────────────────── */

.product-page section { padding: 110px 0; position: relative; }
.product-page .container { max-width: 1100px; }


