/* ============================================================
   NovaCore Capital — Light editorial theme
   ============================================================ */

:root {
    --color-bg: #e8e5de;
    --color-bg-deep: #dfdbd1;
    --color-text: #2e3b33;
    --color-text-dim: #5f6c63;
    --color-text-faint: #8a938c;
    --color-heading: #26503b;
    --color-accent: #26503b;
    --color-accent-bright: #3a6d52;
    --color-accent-soft: rgba(38, 80, 59, 0.08);
    --color-rule: rgba(38, 80, 59, 0.12);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-editorial: 'Fraunces', 'Inter', Georgia, serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    --edge-x: 56px;
    --edge-y: 42px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.3s; }

/* ============================================================
   Canvas
   ============================================================ */
#graph-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    display: block;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* ============================================================
   Intro state
   ============================================================ */
.brand, .nav-toggle, #nav, .hero-scroll, main {
    opacity: 1;
    transition: opacity 0.9s var(--ease-out-quart);
}

body.intro .brand,
body.intro .nav-toggle,
body.intro #nav,
body.intro .hero-scroll,
body.intro main {
    opacity: 0;
    pointer-events: none;
}

body.intro { overflow: hidden; }

/* ============================================================
   Brand (top-left, fixed)
   ============================================================ */
.brand {
    position: fixed;
    top: var(--edge-y);
    left: var(--edge-x);
    z-index: 100;
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
}

.brand-img {
    height: 22px;
    width: auto;
    opacity: 0.92;
    transition: opacity 0.3s;
}

.brand:hover .brand-img { opacity: 1; }

/* Subtle fade-to-bg gradient behind brand/toggle for readability over graph */
.brand::before,
.nav-toggle::before {
    content: '';
    position: absolute;
    inset: -16px -20px;
    background: radial-gradient(ellipse at center, var(--color-bg) 0%, var(--color-bg) 40%, rgba(232, 229, 222, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Brand logo fades out once past the hero */
.brand {
    transition: opacity 0.45s var(--ease-out-quart);
}
body.past-hero .brand {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   Nav toggle button (top-right, fixed)
   ============================================================ */
.nav-toggle {
    position: fixed;
    top: var(--edge-y);
    right: var(--edge-x);
    z-index: 101;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 2px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-heading);
    pointer-events: auto;
    transition: color 0.3s var(--ease-out-quart);
}

.nav-toggle:hover { color: var(--color-accent-bright); }

.nav-toggle-icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 12px;
}
.nav-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.35s var(--ease-out-quart), top 0.25s var(--ease-out-quart);
}
.nav-toggle-icon span:nth-child(1) { top: 3px; }
.nav-toggle-icon span:nth-child(2) { top: 8px; }

body.nav-open .nav-toggle-icon span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
body.nav-open .nav-toggle-icon span:nth-child(2) { top: 5.5px; transform: rotate(-45deg); }


/* ============================================================
   Nav — full-page overlay, right-aligned bold green on faded bg.
   ============================================================ */
#nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(232, 229, 222, 0);
    pointer-events: none;
    transition: background 0.6s var(--ease-out-quart),
                backdrop-filter 0.6s var(--ease-out-quart);
}
body.nav-open #nav-backdrop {
    background: rgba(232, 229, 222, 0.72);
    backdrop-filter: blur(5px) saturate(0.85);
    -webkit-backdrop-filter: blur(5px) saturate(0.85);
    pointer-events: auto;
}

#nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(560px, 92vw);
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    background: transparent;
    color: var(--color-heading);
    transition: transform 0.55s var(--ease-out-quart),
                opacity 0.45s var(--ease-out-quart);
}

body.nav-open #nav {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nav-inner {
    height: 100%;
    padding: calc(var(--edge-y) + 96px) var(--edge-x) calc(var(--edge-y) + 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.nav-eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.5s var(--ease-out-quart) 0.15s,
                transform 0.5s var(--ease-out-quart) 0.15s;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-top: 36px;
    flex: 1;
    justify-content: center;
}

.nav-list > li {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.55s var(--ease-out-quart),
                transform 0.55s var(--ease-out-quart);
    transition-delay: calc(0.15s + var(--i, 0) * 0.06s);
}

.nav-list > li > a {
    display: inline-flex;
    align-items: baseline;
    gap: 16px;
    padding: 6px 0;
    color: var(--color-heading);
    cursor: pointer;
    transition: color 0.3s var(--ease-out-quart),
                letter-spacing 0.4s var(--ease-out-quart);
}

.nav-num { display: none; }

.nav-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.05;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--color-accent-bright);
}
.nav-list > li > a:hover .nav-label {
    letter-spacing: 0.16em;
}

.nav-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-top: 32px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.5s var(--ease-out-quart) 0.5s,
                transform 0.5s var(--ease-out-quart) 0.5s;
}
.nav-foot a { transition: color 0.3s; }
.nav-foot a:hover { color: var(--color-heading); }

body.nav-open .nav-eyebrow,
body.nav-open .nav-foot {
    opacity: 1;
    transform: translateX(0);
}
body.nav-open .nav-list > li {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   Main — sections flow naturally
   ============================================================ */
main {
    position: relative;
    z-index: 2;
}

.section {
    min-height: 100vh;
    padding: var(--edge-y) var(--edge-x);
    display: flex;
    align-items: center;
}

/* Hero with bottom-left tagline + centered scroll cue */
.hero-section {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 44px;
    position: relative;
}

.hero-copy {
    max-width: min(48vw, 720px);
    margin-bottom: 24px;
    pointer-events: auto;
    transform: translateZ(0);
    will-change: auto;
    backface-visibility: hidden;
}

.hero-section .hero-tagline {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(32px, 4vw, 60px);
    letter-spacing: -0.018em;
    line-height: 1.2;
    color: #1a1a1a;
    max-width: none;
    margin-bottom: 0;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    cursor: pointer;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--color-heading) 0%, transparent 100%);
    animation: scrollPulse 2.2s ease-in-out infinite;
    display: block;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.55); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   Section content — sits directly on cream; graph keeps out
   ============================================================ */
.section-body {
    max-width: 680px;
    pointer-events: auto;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.section:nth-child(odd) .section-body { margin-left: 0; margin-right: auto; }
.section:nth-child(even) .section-body { margin-left: auto; margin-right: 0; }

.section-index {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 28px;
}

.strategy-intro {
    border-top: 1px solid var(--color-rule);
    padding-top: 22px;
    margin-top: 8px;
}

.section h2 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--color-heading);
    margin-bottom: 28px;
}

.section p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 18px;
    max-width: 58ch;
}

.section p:last-of-type { margin-bottom: 28px; }

.section-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-rule);
    max-width: 560px;
}

.section-stats dt {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 6px;
}

.section-stats dd {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-heading);
    letter-spacing: -0.01em;
}

.strategy-pillar {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 32px;
    margin-bottom: 10px;
}

.strategy-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 0;
    max-width: 58ch;
}

.section-list {
    list-style: none;
    margin-top: 8px;
    padding-top: 8px;
}

.section-list li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    padding: 14px 0;
    border-top: 1px solid var(--color-rule);
}

.section-list li strong {
    color: var(--color-heading);
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-heading);
    background: transparent;
    padding: 12px 22px;
    border: 1px solid rgba(12, 20, 39, 0.28);
    transition: all 0.35s var(--ease-out-expo);
}

.cta-button:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
    color: var(--color-heading);
}

.cta-button:hover span { transform: translateX(4px); }

.cta-button span {
    display: inline-block;
    transition: transform 0.25s;
    letter-spacing: 0;
    font-size: 14px;
}

/* Contact details */
.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--color-rule);
    max-width: 560px;
}

.contact-details dt {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 6px;
}

.contact-details dd {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-heading);
    letter-spacing: 0;
    line-height: 1.5;
}

.contact-details dd a {
    color: var(--color-heading);
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.contact-details dd a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid transparent;
}

.linkedin-link svg {
    flex-shrink: 0;
    display: block;
}

/* ============================================================
   Legal footer — dark, at the end of the page
   ============================================================ */
.legal-footer {
    position: relative;
    z-index: 3;                 /* above canvas */
    background: #1d3f2e;
    color: #a8b3ad;
    padding: 40px var(--edge-x) 24px;
}

.legal-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.legal-footer .section-index {
    display: block;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8fa699;
    margin-bottom: 12px;
}

.legal-footer h2 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0;
    color: #e8efe9;
    margin-bottom: 16px;
    max-width: 72ch;
}

.legal-body {
    max-width: 72ch;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 14px;
}

.legal-body p {
    font-size: 10px;
    line-height: 1.6;
    color: #8fa699;
    margin-bottom: 8px;
    max-width: 72ch;
}

.legal-body p:last-child { margin-bottom: 0; }

.legal-footline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #667b70;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    :root { --edge-x: 36px; --edge-y: 30px; }
}

@media (max-width: 768px) {
    :root { --edge-x: 22px; --edge-y: 22px; }

    .brand-img { height: 18px; }
    .nav-list > li > a { font-size: 10px; letter-spacing: 0.18em; }
    .subnav a { font-size: 9px; }

    .section-body { padding: 40px 26px; max-width: 100%; }
    .section h2 { font-size: clamp(24px, 6vw, 32px); }
    .section-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero-scroll { display: none; }
    .section-stats { grid-template-columns: 1fr; }
}
