/* =========================================================
   The Lunni Company — Main Stylesheet
   Aesthetic: bold modern, deep charcoal canvas, ember accent,
   editorial display type (Fraunces) with technical sans (Outfit)
   ========================================================= */

:root {
    --bg: #0b0b0d;
    --bg-elev: #131318;
    --bg-soft: #1a1a21;
    --ink: #f5f1ea;
    --ink-soft: #c9c4ba;
    --ink-muted: #7a766d;
    --line: #26262e;
    --line-strong: #3a3a45;

    /* Brass accent — refined, wealth-forward, distinctive without being shouty */
    --accent: #d4a74a;
    --accent-soft: #e8c478;
    --accent-deep: #a07d28;

    /* Sector colors — each company gets a distinct hue */
    --sector-it: #4ad6c8;
    --sector-cyber: #e0533a;
    --sector-hospitality: #c9b8ff;
    --sector-apparel: #f0a3c9;
    --sector-realestate: #7ed957;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --container: 1320px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --radius: 4px;
    --radius-lg: 18px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Noise grain texture overlay for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    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.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

.section {
    padding: clamp(5rem, 12vw, 9rem) 0;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    backdrop-filter: blur(20px);
    background: rgba(11, 11, 13, 0.7);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(11, 11, 13, 0.92);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    line-height: 1;
}

.brand-mark {
    width: auto;
    height: 56px;
    display: block;
    flex-shrink: 0;
    /* The source PNG is black-on-transparent. Invert turns black into white,
       then a slight cream-toned brightness keeps it warm rather than clinical. */
    filter: invert(1) brightness(0.96) sepia(0.06);
    transition: filter 0.4s var(--ease);
}

.brand:hover .brand-mark {
    /* Subtle warm shift on hover to coordinate with the wordmark accent */
    filter: invert(83%) sepia(36%) saturate(467%) hue-rotate(2deg) brightness(91%) contrast(88%);
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    font-family: var(--font-body);
}

.brand-line-top,
.brand-line-bottom {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-family: var(--font-mono);
}

.brand-line-main {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1;
    margin: 0.18rem 0;
    /* Optical adjustment so the wordmark feels tight without crowding the small caps */
    padding: 0 0.02em;
}

.brand:hover .brand-line-main {
    color: var(--accent);
    transition: color 0.3s var(--ease);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s var(--ease);
    position: relative;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: all 0.3s var(--ease);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle at center, rgba(212, 167, 74, 0.18) 0%, rgba(212, 167, 74, 0.05) 35%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 14s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle at center, rgba(74, 214, 200, 0.08) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--accent);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 11vw, 9.5rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    font-weight: 400;
    margin-bottom: 2.5rem;
    font-variation-settings: "opsz" 144;
}

.hero-heading .line {
    display: block;
    overflow: hidden;
}

.hero-heading .line span {
    display: inline-block;
    transform: translateY(120%);
    animation: rise 1.1s var(--ease) forwards;
}

.hero-heading .line:nth-child(1) span { animation-delay: 0.2s; }
.hero-heading .line:nth-child(2) span { animation-delay: 0.35s; }
.hero-heading .line:nth-child(3) span { animation-delay: 0.5s; }

@keyframes rise {
    to { transform: translateY(0); }
}

.hero-heading em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-subtext {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 620px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.85s forwards;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 1s forwards;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
    background: none;
    color: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 167, 74, 0.25);
}

.btn-secondary {
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--ink);
    background: var(--bg-elev);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
    border-top: 1px solid var(--line);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 400;
    position: sticky;
    top: 7rem;
}

.about-body p {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.about-body p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.85;
    float: left;
    margin: 0.1rem 0.8rem 0 0;
    color: var(--accent);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-variation-settings: "opsz" 144;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
}

/* =========================================================
   COMPANIES
   ========================================================= */
.companies {
    border-top: 1px solid var(--line);
    background: var(--bg-elev);
    position: relative;
}

.companies-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 5rem;
}

.companies-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 400;
}

.companies-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.companies-list {
    border-top: 1px solid var(--line);
}

.company {
    border-bottom: 1px solid var(--line);
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: 1.4fr 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
    position: relative;
    transition: padding 0.4s var(--ease);
}

.company::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 167, 74, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.company:hover {
    padding-left: 1.5rem;
}

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

.company-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(212, 167, 74, 0.1);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.company:hover .company-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(212, 167, 74, 0.15);
}

.company:nth-child(1) .company-dot { background: var(--sector-it); box-shadow: 0 0 0 4px rgba(74, 214, 200, 0.1); }
.company:nth-child(2) .company-dot { background: var(--sector-cyber); box-shadow: 0 0 0 4px rgba(224, 83, 58, 0.12); }
.company:nth-child(3) .company-dot { background: var(--sector-hospitality); box-shadow: 0 0 0 4px rgba(201, 184, 255, 0.1); }
.company:nth-child(4) .company-dot { background: var(--sector-apparel); box-shadow: 0 0 0 4px rgba(240, 163, 201, 0.1); }
.company:nth-child(5) .company-dot { background: var(--sector-realestate); box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.1); }

.company-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-soft);
    padding-top: 0.6rem;
    max-width: 480px;
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.6rem;
    justify-content: flex-end;
}

.company-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    background: var(--bg);
    white-space: nowrap;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    background: radial-gradient(circle at center, rgba(212, 167, 74, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    position: relative;
    z-index: 1;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 400;
    margin-bottom: 2rem;
}

.contact-heading em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}

.contact-subtext {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

.contact-detail {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.contact-detail-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    min-width: 80px;
}

.contact-detail-value {
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 500;
}

.contact-detail-value a:hover {
    color: var(--accent);
}

/* Contact form */
.contact-form {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
    font-weight: 400;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-soft);
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
    font-family: var(--font-body);
}

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
}

.form-notice {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid;
}

.form-notice-success {
    border-color: var(--sector-realestate);
    color: var(--sector-realestate);
    background: rgba(126, 217, 87, 0.06);
}

.form-notice-error {
    border-color: var(--accent);
    color: var(--accent-soft);
    background: rgba(212, 167, 74, 0.06);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 4rem 0 2rem;
    background: var(--bg-elev);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: end;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.02em;
    max-width: 600px;
}

.footer-tagline em {
    font-style: italic;
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--ink-soft);
    transition: color 0.2s var(--ease);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-email {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    /* Prevent right-click "save image" temptation */
    -webkit-touch-callout: none;
}

.footer-email svg {
    display: block;
}

/* Contact section email image */
.contact-detail .footer-email,
.contact-detail svg {
    display: inline-block;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-elev);
        flex-direction: column;
        padding: 2rem var(--gutter);
        gap: 1.5rem;
        border-bottom: 1px solid var(--line);
    }
    .nav-menu.is-open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-heading {
        position: static;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .company {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .company-description {
        padding-top: 0;
    }
    .company-tags {
        justify-content: flex-start;
        padding-top: 0;
    }
    .company:hover {
        padding-left: 0.5rem;
    }
}

@media (max-width: 600px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .companies-head {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-heading .line span {
        transform: translateY(0);
    }
}
