/* ============================================================
   GREENWOOD VENTURES LLC
   Umbrella Company Site
   Style: Editorial, Luxury Minimalist, Black & Gold
   ============================================================ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
    --black:       #050505;
    --surface:     #0c0c0d;
    --surface-2:   #111113;
    --gold:        #c9a84c;
    --gold-light:  #e8c97a;
    --gold-dim:    rgba(201, 168, 76, 0.12);
    --gold-line:   rgba(201, 168, 76, 0.18);
    --white:       #f7f5f0;
    --grey:        #9a9a9a;
    --grey-dim:    #555558;

    --font-head:   'Outfit', sans-serif;
    --font-body:   'Inter', sans-serif;

    --ease:        cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-out:    cubic-bezier(0, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select {
    font-family: var(--font-body);
    color: var(--white);
    background: none;
    border: none;
    outline: none;
    width: 100%;
}
textarea { resize: vertical; }
select option { background: var(--surface-2); color: var(--white); }

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.25); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 76, 0.5); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ─── CANVAS ─────────────────────────────────────────────── */
#canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ─── TYPOGRAPHY UTILS ──────────────────────────────────── */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2.5rem;
}

/* ─── BUTTON ─────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.25rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 2px;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.18);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.32);
}

/* ─── HEADER ─────────────────────────────────────────────── */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--gold-line);
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 3rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Wordmark */
.wordmark {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.wm-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.92;
    transition: opacity 0.2s;
}

.wordmark:hover .wm-mark { opacity: 1; }

.wm-type {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    line-height: 1;
}

.wm-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    text-transform: uppercase;
}

.wm-sub {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 200;
    letter-spacing: 0.06em;
    color: rgba(247,245,240,0.45);
    text-transform: uppercase;
}

/* Desktop Nav */
.nav-links {
    display: flex;
    gap: 3rem;
}
.nav-links a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--white);
    transition: var(--ease) 0.25s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 80px;
    z-index: 199;
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mn-link {
    font-family: var(--font-head);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--grey);
    letter-spacing: -0.02em;
    transition: color 0.2s;
}
.mn-link:hover { color: var(--white); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 160px 0 100px;
    position: relative;
}

.hero-inner {
    max-width: 880px;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2.5rem;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 2rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.88;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--grey);
    max-width: 560px;
    margin-bottom: 3.5rem;
    line-height: 1.75;
}

.hero-rule {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

/* ─── MANDATE / PHILOSOPHY ──────────────────────────────── */
.mandate {
    padding: 130px 0;
}

.mandate-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 6rem;
    align-items: start;
}

.mandate-label { padding-top: 0.25rem; }

.mandate-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.mandate-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mandate-body p {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--grey);
    line-height: 1.8;
}

/* ─── PORTFOLIO ──────────────────────────────────────────── */
.portfolio {
    padding: 130px 0;
    border-top: 1px solid var(--gold-line);
}

.portfolio-header {
    margin-bottom: 4rem;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
    cursor: pointer;
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    left: -3rem; right: -3rem;
    top: 0; bottom: 0;
    background: transparent;
    transition: background 0.3s var(--ease);
    z-index: 0;
    pointer-events: none;
}

.portfolio-item:hover::before {
    background: rgba(201, 168, 76, 0.03);
}

.portfolio-item:hover .p-index {
    color: var(--gold);
}

.portfolio-item:hover .p-name {
    color: var(--gold-light);
}

.portfolio-item:hover .p-arrow {
    transform: translate(4px, -4px);
    color: var(--gold);
}

/* Portfolio mark — logo or initials */
.p-mark {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 56px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: opacity 0.25s;
}

.portfolio-item:hover .p-mark { opacity: 1; }

/* Image logos */
.p-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    transition: filter 0.25s, opacity 0.25s;
}

/* Ingress Labs logo — has transparency, teal on dark works well */
.p-logo--ingress {
    filter: saturate(0.75) brightness(0.85);
    opacity: 0.65;
    height: 32px;
}
.portfolio-item:hover .p-logo--ingress {
    filter: saturate(1) brightness(1);
    opacity: 1;
}

/* Civic Signal logo — let orange show naturally on dark bg */
.p-logo--civic {
    opacity: 0.55;
    height: 32px;
    max-width: 64px;
    /* Show just the icon square portion at top */
    object-position: left top;
    object-fit: cover;
    aspect-ratio: 1;
    border-radius: 6px;
}
.portfolio-item:hover .p-logo--civic {
    opacity: 0.9;
}

/* Initials badge for brands without clean logos */
.p-initials {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--brand-color, var(--gold));
    opacity: 0.6;
    transition: opacity 0.25s, border-color 0.25s;
}
.portfolio-item:hover .p-initials {
    opacity: 1;
    border-color: rgba(255,255,255,0.15);
}

/* BH Labs inline SVG */
.p-svg-logo {
    display: flex;
    align-items: center;
    opacity: 0.55;
    transition: opacity 0.25s;
}
.portfolio-item:hover .p-svg-logo { opacity: 0.95; }

/* Civic Signal icon badge */
.p-civic-icon {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.25s;
}
.portfolio-item:hover .p-civic-icon { opacity: 1; }

.p-body {
    position: relative;
    z-index: 1;
}

.p-title-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.p-name {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
    transition: color 0.25s;
}

.p-tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-dim);
    border: 1px solid var(--grey-dim);
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
}

.p-desc {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--grey);
    max-width: 640px;
    line-height: 1.75;
}

.p-link-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.p-url {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--grey-dim);
    white-space: nowrap;
}

.p-arrow {
    width: 20px;
    height: 20px;
    color: var(--grey-dim);
    transition: transform 0.25s var(--ease), color 0.25s;
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact {
    padding: 130px 0;
    border-top: 1px solid var(--gold-line);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

.contact-title {
    font-family: var(--font-head);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.contact-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--grey);
    line-height: 1.75;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cd-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cd-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.cd-value {
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    transition: color 0.2s;
    line-height: 1.5;
}

a.cd-value:hover { color: var(--gold-light); }

.cd-muted {
    opacity: 0.42;
    font-size: 0.88em;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cf-group {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.4rem 0;
    gap: 0.45rem;
    transition: border-color 0.2s;
}

.cf-group:focus-within {
    border-color: var(--gold);
}

.cf-group label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey-dim);
}

.cf-group input,
.cf-group textarea,
.cf-group select {
    font-size: 1rem;
    font-weight: 300;
    color: var(--white);
    background: none;
    padding: 0.2rem 0;
}

.cf-group input::placeholder,
.cf-group textarea::placeholder { color: var(--grey-dim); }
.cf-group select { appearance: none; cursor: pointer; }

.contact-form .btn-primary { margin-top: 2.5rem; align-self: flex-start; }

.cf-success {
    display: none;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--grey);
}

.cf-success a { color: var(--gold); text-decoration: underline; }
.cf-success.show { display: block; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--gold-line);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy, .footer-tag {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--grey-dim);
    letter-spacing: 0.04em;
}

/* ─── SCROLL ANIMATIONS ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays for portfolio items */
.portfolio-item:nth-child(1) { transition-delay: 0.05s; }
.portfolio-item:nth-child(2) { transition-delay: 0.10s; }
.portfolio-item:nth-child(3) { transition-delay: 0.15s; }
.portfolio-item:nth-child(4) { transition-delay: 0.20s; }
.portfolio-item:nth-child(5) { transition-delay: 0.25s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .nav-inner { padding: 0 2rem; }
    .mandate-inner { grid-template-columns: 1fr; gap: 2rem; }
    .contact-inner { grid-template-columns: 1fr; gap: 5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: flex; }
    .mobile-nav { display: flex; }

    .hero { padding: 140px 0 80px; }
    .hero-title { font-size: clamp(2.75rem, 10vw, 4rem); }

    .mandate { padding: 80px 0; }
    .portfolio { padding: 80px 0; }
    .contact { padding: 80px 0; }

    .portfolio-item {
        grid-template-columns: 52px 1fr;
        gap: 1.5rem;
    }

    .p-link-col { display: none; }

    .p-title-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .p-name { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.5rem; }
    .nav-inner { padding: 0 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .mandate-title { font-size: 1.75rem; }
    .contact-title { font-size: 2rem; }
}
