/* ══════════════════════════════════════════
   Molting Ventures — Landing Page Styles
   ══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink:       #0E1E3D;
    --navy:      #1B3461;
    --slate:     #3A5080;
    --muted:     #5C6F8A;
    --subtle:    #8A97B0;
    --border:    #D4DCED;
    --surface:   #F3F6FB;
    --white:     #FFFFFF;
    --line:      rgba(14, 30, 61, 0.1);

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --header-h: 70px;
    --max-w:    1160px;
    --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.75;
    background: var(--white);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Typography Helpers ── */
.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 20px;
}

.section-label.light { color: rgba(255, 255, 255, 0.32); }

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 300;
    line-height: 1.15;
    color: var(--ink);
}

.section-heading.light { color: var(--white); }

.section-body {
    font-size: 16px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.9;
    max-width: 600px;
}

.section-body.light { color: rgba(255, 255, 255, 0.52); }

/* ── Scroll Animation ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease);
}

#site-header.scrolled {
    box-shadow: 0 2px 24px rgba(14, 30, 61, 0.07);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 51px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-svg { display: none; }

.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 1.75rem; }

.logo-name {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
    white-space: nowrap;
}

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-links a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    border: 1px solid var(--navy) !important;
    color: var(--navy) !important;
    padding: 8px 22px !important;
    transition: background 0.25s, color 0.25s !important;
}

.nav-cta:hover {
    background: var(--navy) !important;
    color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 40px 32px;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease);
    pointer-events: none;
}

.mobile-nav.open {
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--ink); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--header-h) 40px 80px;
    padding-left: max(40px, calc((100vw - var(--max-w)) / 2 + 40px));
    padding-right: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 660px;
    position: relative;
    z-index: 2;
    padding-right: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 44px;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--border);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(50px, 7vw, 90px);
    font-weight: 300;
    line-height: 1.06;
    color: var(--ink);
    margin-bottom: 40px;
}

.hero-title em {
    font-style: italic;
    color: var(--navy);
}

.hero-rule {
    width: 42px;
    height: 2px;
    background: var(--navy);
    margin-bottom: 40px;
}

.hero-text {
    font-size: 17px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.85;
    max-width: 500px;
    margin-bottom: 56px;
}

.domain-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.domain-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 20px;
    border: 1px solid var(--border);
    transition: border-color 0.25s, color 0.25s;
}

.domain-tag:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* Hero background decoration */
.hero-decoration {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 52%;
    z-index: 1;
    opacity: 0.042;
    pointer-events: none;
}

.hero-decoration svg {
    width: 100%;
    height: 100%;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 44px;
    left: max(40px, calc((100vw - var(--max-w)) / 2 + 40px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, var(--border));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

.scroll-indicator span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--subtle);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* ══════════════════════════════════════════
   MISSION
   ══════════════════════════════════════════ */
.mission {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 108px 40px;
}

.mission-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 80px;
    align-items: start;
}

.mission-left { padding-top: 6px; }

.big-quote {
    font-family: var(--font-serif);
    font-size: 140px;
    line-height: 0.75;
    color: var(--border);
    user-select: none;
    margin-top: 18px;
}

/* ══════════════════════════════════════════
   FOCUS AREAS
   ══════════════════════════════════════════ */
.focus {
    padding: 108px 40px;
}

.focus-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.focus-header {
    margin-bottom: 64px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
}

.focus-card {
    padding: 52px 38px;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: background 0.35s var(--ease);
    cursor: default;
}

.focus-card:last-child { border-right: none; }
.focus-card:hover { background: var(--surface); }

.card-number {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--border);
    margin-bottom: 36px;
}

.card-icon {
    width: 52px;
    height: 52px;
    color: var(--navy);
    margin-bottom: 28px;
    display: block;
}

.card-domain {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 22px;
}

.card-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.85;
}

/* Hover bar */
.card-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s var(--ease);
}

.focus-card:hover .card-bar { transform: scaleX(1); }

/* ══════════════════════════════════════════
   PHILOSOPHY
   ══════════════════════════════════════════ */
.philosophy {
    background: var(--ink);
    padding: 108px 40px;
}

.philosophy-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pillar {
    padding: 32px 36px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s, background 0.3s;
}

.pillar:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.055);
}

.pillar-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.pillar-body {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.78;
}

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-section {
    padding: 128px 40px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.contact-inner {
    max-width: 560px;
    margin: 0 auto;
}

.contact-inner .section-heading { margin-bottom: 24px; }

.contact-body {
    margin: 0 auto 52px;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 16px 54px;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--navy);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.cta-btn:hover {
    background: transparent;
    color: var(--navy);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
    background: var(--ink);
    padding: 44px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.footer-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: brightness(0) invert(1);
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.03em;
}

.footer-slogan {
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.22);
    letter-spacing: 0.06em;
}

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

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

/* Large tablet */
@media (max-width: 1024px) {
    .focus-grid { grid-template-columns: 1fr 1fr; }

    .focus-card:nth-child(2) { border-right: none; }
    .focus-card:nth-child(3) {
        border-right: 1px solid var(--border);
        border-top: 1px solid var(--border);
    }
    .focus-card:nth-child(4) {
        border-right: none;
        border-top: 1px solid var(--border);
    }

    .philosophy-inner { grid-template-columns: 1fr; gap: 60px; }
    .mission-inner { grid-template-columns: 200px 1fr; gap: 56px; }
}

/* Tablet */
@media (max-width: 768px) {
    :root { --header-h: 62px; }

    .header-inner { padding: 0 24px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero {
        padding: var(--header-h) 24px 80px;
        padding-left: 24px;
        align-items: flex-start;
        padding-top: calc(var(--header-h) + 60px);
    }

    .hero-content { max-width: 100%; padding-right: 0; }
    .hero-decoration { display: none; }

    .scroll-indicator { left: 24px; }

    .mission { padding: 80px 24px; }
    .mission-inner { grid-template-columns: 1fr; gap: 32px; }
    .big-quote { font-size: 100px; }

    .focus { padding: 80px 24px; }
    .focus-grid { grid-template-columns: 1fr; border: 1px solid var(--border); }
    .focus-card,
    .focus-card:nth-child(2),
    .focus-card:nth-child(3),
    .focus-card:nth-child(4) {
        border-right: none;
        border-top: none;
        border-bottom: 1px solid var(--border);
    }
    .focus-card:last-child { border-bottom: none; }

    .philosophy { padding: 80px 24px; }
    .philosophy-inner { gap: 48px; }

    .contact-section { padding: 88px 24px; }

    footer { padding: 36px 24px; }
    .footer-inner {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .mobile-nav { padding: 20px 24px 28px; }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-title { font-size: 44px; }
    .focus-card { padding: 40px 28px; }
    .pillar { padding: 26px 28px; }
}
