:root {
    --bg: #09090b;
    --surface: #121216;
    --surface-alt: #0f0f13;
    --text: #f4f4f1;
    --muted: #b5b5b0;
    --line: #2a2a32;
    --accent: #ff6a1a;
    --accent-deep: #e65d12;
    --radius: 14px;
    --shadow: 0 20px 38px -24px rgba(0, 0, 0, 0.75);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, rgba(255, 106, 26, 0.12) 0%, transparent 38%), var(--bg);
    line-height: 1.5;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    line-height: 1.15;
    margin-top: 0;
}

p {
    margin-top: 0;
    color: var(--muted);
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.brand-wordmark {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.is-current {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    padding: 0.4rem 0.7rem;
}

.section {
    padding: 3.8rem 0;
}

.section-grid-bg {
    position: relative;
    overflow: hidden;
}

.section-grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
}

.hero {
    padding: 5.2rem 0 4.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.1rem, 6vw, 3.8rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.07rem;
    max-width: 58ch;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-panel {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #15151b 0%, #1a1714 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.3rem 1.3rem 1.1rem;
}

.hero-logo {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #191919;
    padding: 0.45rem;
}

.hero-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.hero-panel ol {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.hero-panel li {
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    margin-bottom: 1.2rem;
}

.cards-grid {
    display: grid;
    gap: 1rem;
}

.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.15rem;
    box-shadow: 0 8px 18px -18px rgba(31, 37, 41, 0.7);
}

.card h3 {
    margin-bottom: 0.45rem;
}

.section-alt {
    background: var(--surface-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stats-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    padding: 1.25rem 1rem;
}

.stat-value {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    margin: 0;
}

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

.section-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.logo-strip-section {
    padding-top: 0;
}

.logo-strip {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(130deg, #121217, #1a1511);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: grid;
    grid-template-columns: 2fr 0.8fr 2fr;
    align-items: center;
    gap: 0.8rem;
}

.logo-strip img {
    width: 100%;
    max-height: 62px;
    object-fit: contain;
    display: block;
}

.btn {
    appearance: none;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #111;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 106, 26, 0.12);
}

.btn-small {
    padding: 0.42rem 0.75rem;
    font-size: 0.88rem;
}

.page-hero {
    padding: 4.2rem 0 2.3rem;
}

.max-w-70 {
    max-width: 70ch;
}

.filter-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.filter-chip {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.project-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #131318;
}

.bikeshare-gallery {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.8rem;
}

.gallery-tile {
    grid-column: span 4;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #131318;
    box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.8);
}

.gallery-tile-wide {
    grid-column: span 6;
}

.gallery-tile img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-tile:hover img {
    transform: scale(1.03);
}

.pill {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin: 0;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.list-clean {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.list-clean li {
    margin-bottom: 0.45rem;
}

.list-clean.ordered {
    list-style: decimal;
}

.inline-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

.details-btn {
    margin-top: auto;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(4, 5, 7, 0.78);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal-card {
    width: min(640px, 96vw);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    position: relative;
}

.modal-card h2 {
    margin-bottom: 0.4rem;
}

.modal-meta {
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.8rem 0;
}

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

.footer-wrap p {
    margin: 0;
    color: var(--muted);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

@media (max-width: 900px) {

    .hero-grid,
    .cards-2,
    .cards-3,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .logo-strip {
        grid-template-columns: 1fr;
    }

    .logo-strip img {
        max-height: 56px;
    }

    .gallery-tile,
    .gallery-tile-wide {
        grid-column: span 6;
    }
}

@media (max-width: 680px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem;
    }

    .brand-wordmark {
        height: 18px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .cards-3,
    .cards-2,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-tile,
    .gallery-tile-wide {
        grid-column: span 12;
    }
}