/* Black Dog Analytics, LLC — single-page site styles.
   Self-contained: no external fonts or frameworks. Palette is drawn from the
   logo (charcoal coat, red collar, tennis-ball chartreuse). */

:root {
    --ink: #16181d;          /* near-black, from the coat */
    --ink-soft: #2a2e37;
    --paper: #ffffff;
    --mist: #f4f5f7;         /* alt section background */
    --line: #e3e5ea;
    --muted: #5c6270;
    --accent: #c7d92d;       /* tennis-ball chartreuse */
    --accent-ink: #3f4a08;   /* readable text on accent */
    --collar: #c0392b;       /* red collar, used sparingly */
    --radius: 14px;
    --wrap: 1080px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: min(100% - 40px, var(--wrap));
    margin-inline: auto;
}

a { color: inherit; }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.brand img { display: block; border-radius: 50%; }
.brand-name { font-size: 18px; }
.site-nav {
    display: flex;
    gap: 26px;
    font-size: 15px;
    font-weight: 500;
}
.site-nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--accent); }

/* ---- Hero ---- */
.hero {
    background:
        radial-gradient(1200px 400px at 50% -120px, rgba(199, 217, 45, 0.18), transparent 70%),
        var(--ink);
    color: #fff;
    text-align: center;
    padding: 84px 0 96px;
}
.hero-logo {
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero h1 {
    margin: 28px auto 14px;
    max-width: 16ch;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.hero .lead {
    margin: 0 auto 30px;
    max-width: 60ch;
    color: #c9ccd6;
    font-size: clamp(16px, 2.2vw, 19px);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    text-decoration: none;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 999px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    box-shadow: 0 6px 20px rgba(199, 217, 45, 0.25);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.03); }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--mist); border-block: 1px solid var(--line); }
.section-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.5vw, 34px);
    letter-spacing: -0.02em;
    text-align: center;
}
.section-sub {
    margin: 0 auto 40px;
    max-width: 56ch;
    text-align: center;
    color: var(--muted);
    font-size: 17px;
}

/* ---- Grids & cards ---- */
.grid { display: grid; gap: 22px; margin-top: 34px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.10);
    border-color: #d3d6dd;
}
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }

/* ---- Project cards ---- */
.project-card { padding-top: 30px; }
.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--accent);
}
.project-icon svg { width: 34px; height: 34px; fill: currentColor; }

/* ---- Featured / special-case project ---- */
.project-featured {
    margin-top: 22px;
    padding: 28px 26px;
    border-top: 4px solid var(--accent);
    background:
        linear-gradient(180deg, rgba(199, 217, 45, 0.08), transparent 140px),
        var(--paper);
}
.project-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 13px;
    background: var(--ink);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
}
.featured-inner {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}
.featured-inner .project-icon {
    flex: none;
    margin-bottom: 0;
}
.featured-text h3 { margin: 0 0 10px; font-size: 22px; }
.project-note {
    margin: 0 0 14px;
    padding-left: 15px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
    font-weight: 600;
}
.featured-text p:last-child { margin: 0; color: var(--muted); }

@media (max-width: 620px) {
    .featured-inner { flex-direction: column; }
}

/* ---- Contact ---- */
.contact-inner { text-align: center; }

/* ---- Footer ---- */
.site-footer {
    background: var(--ink);
    color: #aeb2bd;
    padding: 26px 0;
    font-size: 14px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}
.footer-inner img { border-radius: 50%; background: #fff; padding: 3px; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .site-nav { gap: 16px; font-size: 14px; }
    .brand-name { display: none; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .hero { padding: 60px 0 68px; }
}
