/* ============================================================
   Health Cloud Capital — Design System
   Palette: Warm parchment + deep ink + forest green
   Type: Playfair Display (serif) + Inter (sans)
   ============================================================ */

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

:root {
    --bg:         #F5F3EE;
    --white:      #FDFCFA;
    --ink:        #0F1823;
    --green:      #00AAFF;
    --green-mid:  #33BBFF;
    --muted:      #7A8799;
    --rule:       #DDD9D0;

    --serif: 'Playfair Display', Georgia, serif;
    --sans:  'Inter', system-ui, -apple-system, sans-serif;

    --max: 1200px;
    --pad-x: 64px;
    --pad-y: 120px;
}

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

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

#nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 28px var(--pad-x);
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

#nav.scrolled {
    border-bottom-color: var(--rule);
}

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

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

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.nav-brand-link:hover {
    opacity: 0.75;
}

.nav-logo-img {
    display: block;
    height: 80px;
    width: auto;
    background: transparent;
    mix-blend-mode: multiply;
}

.wordmark {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    user-select: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

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

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

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

/* ============================================================
   HERO
   ============================================================ */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px var(--pad-x) 120px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 400;
    margin-bottom: 44px;
}

#hero h1 {
    font-family: var(--serif);
    font-size: clamp(54px, 7.5vw, 100px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 40px;
}

#hero h1 em {
    font-style: italic;
    color: var(--green);
}

.hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.72;
    margin-bottom: 52px;
}

.cta-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 3px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-link:hover {
    color: var(--green);
    border-color: var(--green);
}

/* Decorative concentric rings — right side */
.hero-ring {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    width: 680px;
    height: 680px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    opacity: 0.55;
    pointer-events: none;
}

.hero-ring::before {
    content: '';
    position: absolute;
    inset: 80px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    opacity: 0.75;
}

.hero-ring::after {
    content: '';
    position: absolute;
    inset: 180px;
    border-radius: 50%;
    border: 1px solid var(--rule);
}


/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--pad-y) var(--pad-x);
}

.section-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 56px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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


/* ============================================================
   THESIS
   ============================================================ */

#thesis {
    border-top: 1px solid var(--rule);
}

.thesis-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 96px;
    align-items: start;
}

.thesis-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
    padding-top: 8px;
    position: sticky;
    top: 104px;
}

.thesis-lead {
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 28px;
}

.thesis-body p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.78;
    margin-bottom: 18px;
}

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


/* ============================================================
   FOCUS AREAS
   ============================================================ */

#focus {
    border-top: 1px solid var(--rule);
    background: var(--white);
}

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

.focus-card {
    padding: 52px 40px;
    border-right: 1px solid var(--rule);
    transition: background 0.2s ease;
}

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

.focus-number {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--green-mid);
    margin-bottom: 28px;
    font-weight: 400;
}

.focus-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 16px;
}

.focus-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.72;
}


/* ============================================================
   PORTFOLIO
   ============================================================ */

#portfolio {
    border-top: 1px solid var(--rule);
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--rule);
}

.portfolio-row {
    display: grid;
    grid-template-columns: 360px 1fr;
    align-items: baseline;
    gap: 80px;
    padding: 48px 0;
    border-bottom: 1px solid var(--rule);
}

.portfolio-row.last { border-bottom: none; }

.company-name {
    font-family: var(--serif);
    font-size: clamp(28px, 2.8vw, 38px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.company-name-link {
    text-decoration: none;
}

.company-name-link:hover .company-name {
    color: var(--green);
    border-bottom-color: var(--green);
}

.company-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.company-name-link:hover .company-logo {
    opacity: 1;
}

.company-tag {
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--green-mid);
    font-weight: 400;
}

.company-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.72;
    max-width: 560px;
}


/* ============================================================
   TEAM
   ============================================================ */

#team {
    border-top: 1px solid var(--rule);
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
}

.team-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--rule);
    object-fit: cover;
    display: block;
}

.member-name-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.member-name-link:hover {
    border-bottom-color: var(--green);
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    color: var(--muted);
    transition: color 0.2s ease;
}

.linkedin-icon svg {
    width: 16px;
    height: 16px;
}

.linkedin-icon:hover {
    color: var(--green);
}

.member-info h4 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 6px;
}

.member-role {
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 400;
    margin-bottom: 14px;
}

.member-bio {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.68;
}


/* ============================================================
   CONTACT
   ============================================================ */

#contact {
    background: var(--ink);
    border-top: 1px solid var(--rule);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: center;
}

.contact-left h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 3.5vw, 50px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--bg);
    margin-bottom: 20px;
}

.contact-left p {
    font-size: 16px;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 400px;
}

.email-link {
    font-size: 17px;
    color: var(--bg);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 243, 238, 0.25);
    padding-bottom: 4px;
    letter-spacing: -0.01em;
    transition: border-color 0.2s ease;
}

.email-link:hover {
    border-color: var(--bg);
}

.contact-address {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 28px;
}

.contact-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 243, 238, 0.35);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-linkedin svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.contact-linkedin:hover {
    color: rgba(245, 243, 238, 0.75);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 32px var(--pad-x);
}

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

.footer-wordmark {
    font-family: var(--serif);
    font-size: 14px;
    color: rgba(245, 243, 238, 0.4);
}

.footer-legal {
    font-size: 12px;
    color: rgba(245, 243, 238, 0.25);
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 243, 238, 0.35);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(245, 243, 238, 0.75);
}


/* ============================================================
   ANIMATION
   ============================================================ */

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


/* ============================================================
   MOTION & INTERACTION
   ============================================================ */

/* Scroll progress bar */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--green-mid));
    width: 0%;
    z-index: 300;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* Hero canvas */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.hero-inner {
    position: relative;
    z-index: 1;
}


/* Staggered reveal */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-item.in-view {
    opacity: 1;
    transform: none;
}

/* Focus card lift */
.focus-card {
    transition: background 0.25s ease,
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

.focus-card:hover {
    background: var(--bg);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 24, 35, 0.07);
}

/* Portfolio row hover */
.portfolio-row {
    position: relative;
    overflow: hidden;
}

.portfolio-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 170, 255, 0.035);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.portfolio-row:hover::before {
    transform: translateX(0);
}

.portfolio-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    color: var(--green);
    font-size: 18px;
    font-family: var(--sans);
    font-weight: 300;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.portfolio-row:hover .portfolio-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Team avatar hover */
.member-avatar {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
}

.team-member:hover .member-avatar {
    transform: scale(1.07);
    box-shadow: 0 8px 28px rgba(0, 170, 255, 0.18);
}

/* Reduced motion — disable everything */
@media (prefers-reduced-motion: reduce) {
    .hero-ring,
    .hero-ring::before,
    .hero-ring::after { animation: none; }
    .stagger-item     { opacity: 1; transform: none; transition: none; }
    #hero-canvas,
    #progress-bar     { display: none; }
    .hero-inner       { transform: none !important; opacity: 1 !important; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    order: 2;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
    transform-origin: center;
}

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


@media (max-width: 1024px) {
    :root { --pad-x: 40px; --pad-y: 96px; }
    .thesis-layout { grid-template-columns: 140px 1fr; gap: 56px; }
    .team-grid { gap: 48px; }
}


@media (max-width: 800px) {
    :root { --pad-x: 24px; --pad-y: 64px; }

    /* Nav */
    #nav { padding: 20px var(--pad-x); }

    .nav-toggle { display: flex; }

    .nav-logo-img { height: 60px; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--rule);
        padding: 4px 0 16px;
        gap: 0;
        z-index: 98;
    }

    .nav-links.open { display: flex; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 13px var(--pad-x);
        font-size: 12px;
        color: var(--ink);
        letter-spacing: 0.08em;
    }

    .nav-links .nav-cta { color: var(--green); }

    /* Hero */
    #hero { padding: 120px var(--pad-x) 72px; }

    #hero h1 { font-size: clamp(38px, 11vw, 54px); }

    .hero-sub { font-size: 16px; max-width: 100%; }

    #hero-canvas { display: none; }

    .eyebrow { margin-bottom: 28px; }

    /* Thesis */
    .thesis-layout { grid-template-columns: 1fr; gap: 20px; }
    .thesis-label { position: static; }
    .thesis-lead { font-size: clamp(19px, 4.5vw, 24px); }

    /* Focus */
    .focus-grid { grid-template-columns: 1fr; }
    .focus-card { border-right: none; border-bottom: 1px solid var(--rule); padding: 36px var(--pad-x); }
    .focus-card:last-child { border-bottom: none; }
    .focus-card:hover { transform: none; box-shadow: none; }

    /* Section label */
    .section-label { margin-bottom: 36px; }

    /* Portfolio */
    .portfolio-row { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
    .portfolio-arrow { display: none; }

    /* Team */
    .team-grid { grid-template-columns: 1fr; gap: 36px; }
    .team-member { flex-direction: row; gap: 20px; align-items: flex-start; }
    .member-avatar { width: 60px; height: 60px; flex-shrink: 0; }
    .member-info h4 { font-size: 18px; }

    /* Contact */
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .contact-left h2 { font-size: clamp(28px, 7vw, 40px); }

    /* Footer */
    footer { padding: 24px var(--pad-x); }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}


@media (max-width: 480px) {
    :root { --pad-x: 20px; --pad-y: 52px; }

    #hero { padding: 108px var(--pad-x) 60px; }

    #hero h1 { font-size: clamp(32px, 10vw, 44px); letter-spacing: -0.02em; }

    .hero-sub { font-size: 15px; }

    .team-member { flex-direction: column; gap: 16px; }

    .member-avatar { width: 56px; height: 56px; }

    .focus-card { padding: 28px var(--pad-x); }

    .company-name { font-size: clamp(22px, 6vw, 30px); }

    .portfolio-row { padding: 28px 0; gap: 8px; }

    .contact-left h2 { font-size: clamp(24px, 8vw, 34px); }
}

