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

:root {
    --bg: #faf9f6;
    --panel: #ffffff;
    --line: rgba(30, 43, 60, 0.1);
    --grid: rgba(30, 43, 60, 0.04);
    --text: #1e2b3c;
    --muted: #5f6f7f;
    --accent: #2563eb;
    /* ink: AA on white for text/buttons; deep: hover step below ink */
    --accent-ink: #1d4ed8;
    --accent-deep: #1e40af;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
        monospace;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 12px;
    background-color: var(--bg);
    /* harbor: warm paper, soft cobalt glow up top over a faint grid */
    background-image:
        radial-gradient(
            ellipse 70% 45% at 50% -8%,
            rgba(37, 99, 235, 0.07),
            transparent 70%
        ),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
}

main {
    flex: 1;
}

/* floating rounded bar, detached from the top edge */
.nav-shell {
    position: sticky;
    top: 12px;
    z-index: 100;
    padding: 0 1rem;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0.5rem 0.7rem 0.5rem 1.3rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(30, 43, 60, 0.1);
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.brand-accent {
    color: var(--accent-ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin-left: auto;
}

.dropdown-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
}

/* after .dropdown-trigger so the shared styles also win on the button */
.nav-link {
    display: inline-block;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--text);
}

.nav-link.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-ink);
    font-weight: 600;
}

.nav-cta {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.5rem 1.15rem;
    background: var(--accent-ink);
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
    transition: background 0.15s;
}

.nav-cta:hover {
    background: var(--accent-deep);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.15s;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: -2rem;
    width: 330px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(30, 43, 60, 0.14);
    padding: 0.5rem;
    z-index: 200;
    list-style: none;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.07);
}

.dropdown-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.dropdown-blurb {
    display: block;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
    white-space: normal;
}

.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--text);
}

.hero-kicker,
.section-kicker {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--accent-ink);
}

.hero-kicker {
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero-line {
    display: block;
}

.hero-cursor {
    color: var(--accent);
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cursor {
        animation: none;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted);
    margin: 1.25rem 0 2.5rem;
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s,
        box-shadow 0.15s;
}

.btn-primary {
    background: var(--accent-ink);
    border: 1px solid var(--accent-ink);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
}

.services {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.section-kicker {
    display: block;
    margin-bottom: 1.25rem;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.service-card {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 2px 10px rgba(30, 43, 60, 0.05);
    transition: box-shadow 0.15s, transform 0.15s;
}

.service-card.wide {
    grid-column: span 2;
}

.service-card:hover {
    box-shadow: 0 8px 26px rgba(30, 43, 60, 0.1);
    transform: translateY(-2px);
}

.service-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.service-blurb {
    font-size: 0.95rem;
    color: var(--muted);
}

/* "Coming soon" chip on a bento card name */
.card-tag {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.1rem 0.6rem;
    vertical-align: middle;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.bento-strip {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 2px 10px rgba(30, 43, 60, 0.05);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--mono);
    font-size: 1.5rem;
    color: var(--accent-ink);
}

.stat-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    color: var(--text);
}

.page-title {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-status {
    color: var(--muted);
}

.page-body {
    margin-top: 1.5rem;
    color: var(--muted);
}

.page-body p {
    margin-bottom: 1rem;
    max-width: 60ch;
}

/* legal pages: section headings and the effective-date line */
.page-body h2 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 1.75rem 0 0.5rem;
}

.legal-date {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* service pages: tagline lede, offering bullets, audience line */
.page-lede {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
}

.page-body .section-kicker {
    margin-top: 2rem;
}

.offering-list {
    list-style: none;
    display: grid;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.offering-list li {
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}

.offering-name {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.offering-desc {
    display: block;
    font-size: 0.95rem;
    max-width: 60ch;
}

.audience-line strong {
    color: var(--text);
}

/* "Coming soon" badge beside a page title */
.badge-soon {
    display: inline-block;
    margin-left: 0.75rem;
    padding: 0.2rem 0.75rem;
    vertical-align: middle;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.blog-card {
    display: block;
    padding: 1.5rem;
    margin-top: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 2px 10px rgba(30, 43, 60, 0.05);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
}

.blog-card:hover {
    box-shadow: 0 8px 26px rgba(30, 43, 60, 0.1);
    transform: translateY(-2px);
}

.blog-card-title {
    font-size: 1.25rem;
    color: var(--text);
}

.blog-card-date,
.post-date {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--accent-ink);
}

.blog-card-excerpt {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.post-body {
    margin-top: 2rem;
    color: var(--text);
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body h2 {
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.post-body a {
    color: var(--accent-ink);
}

.post-body code {
    font-family: var(--mono);
    background: rgba(30, 43, 60, 0.07);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-body pre {
    background: #f3f1ec;
    border: 1px solid var(--line);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.site-footer {
    color: var(--muted);
    padding: 1.5rem;
    font-size: 0.875rem;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--accent-ink);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        /* solid: backdrop-filter can't sample below the nav's backdrop root */
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 18px 44px rgba(30, 43, 60, 0.14);
        padding: 0.75rem;
        gap: 0.35rem;
    }

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

    .nav-cta {
        margin: 0.35rem 0 0;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: auto;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        background: transparent;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .service-card.wide,
    .bento-strip {
        grid-column: auto;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
