/* Curt Cullens — portfolio
   Mobile-first. No build step. */

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

:root {
    --bg: #f4f6fb;
    --bg-elevated: #ffffff;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #0f172a;
    --accent: #1d4ed8;
    --accent-soft: #dbeafe;
    --accent-hover: #1e40af;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --header-h: 64px;
    --container: 1080px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-underline-offset: 0.15em;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: min(100% - 1.5rem, var(--container));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.96);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    min-height: 44px;
}

.logo:hover {
    color: var(--text);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.logo-text {
    font-size: 0.98rem;
}

.nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
}

.site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1.1rem;
}

.nav-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

.nav-list a:hover,
.nav-list a.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-cta {
    background: var(--primary);
    color: #fff !important;
    justify-content: center;
    margin-top: 0.35rem;
}

.nav-cta:hover,
.nav-cta.is-active {
    background: var(--accent);
    color: #fff !important;
}

body.nav-open {
    overflow: hidden;
}

/* Hero */

.hero {
    padding: 2.25rem 0 2.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 8% 0%, rgba(29, 78, 216, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 10%, rgba(14, 165, 233, 0.12), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

.hero-inner {
    max-width: none;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.hero h1 {
    font-size: clamp(2.35rem, 8vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.hero-lede {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 38rem;
    margin-bottom: 0.85rem;
}

.hero-availability {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.05rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    grid-column: 1 / -1;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    color: var(--text);
    background: #fff;
}

.proof-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.proof-list a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 44px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.proof-list a:hover {
    border-color: #bfdbfe;
    background: #fff;
}

.proof-list strong {
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.proof-list span {
    color: var(--muted);
    font-size: 0.88rem;
}

/* Sections */

.section {
    padding: 2.75rem 0;
}

.section-alt {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.section-header {
    margin-bottom: 1.35rem;
}

.section-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.section-header h2 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.section-intro {
    margin-top: 0.45rem;
    color: var(--text-secondary);
    max-width: 40rem;
}

.date {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--accent);
}

/* Programs */

.case-list {
    display: grid;
    gap: 0.9rem;
}

.case,
.job,
.principle,
.earlier,
.toolkit {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.case,
.job {
    padding: 1.15rem 1.1rem 1.2rem;
}

.case:target {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.case-scope,
.location,
.org {
    color: var(--muted);
    font-size: 0.92rem;
}

.case-body h3,
.job-body h3,
.case-meta h3 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0.15rem 0 0.35rem;
}

.case-body p,
.principle p,
.earlier-list p {
    color: var(--text-secondary);
}

.case-body p + p {
    margin-top: 0.75rem;
}

.case-points,
.job-body ul {
    margin-top: 0.9rem;
    padding-left: 1.15rem;
    color: var(--text-secondary);
}

.case-points li,
.job-body li {
    margin-bottom: 0.45rem;
}

.case-points li:last-child,
.job-body li:last-child {
    margin-bottom: 0;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.company {
    font-weight: 700;
}

.org {
    margin-bottom: 0.35rem;
}

.job-body p {
    color: var(--text-secondary);
}

.timeline {
    display: grid;
    gap: 0.9rem;
}

/* Earlier experience */

.earlier {
    margin-top: 0.9rem;
    padding: 0.35rem 1.1rem 0.2rem;
}

.earlier summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.earlier summary::-webkit-details-marker {
    display: none;
}

.earlier summary::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(45deg) translateY(-2px);
    flex-shrink: 0;
}

.earlier[open] summary::after {
    transform: rotate(225deg) translateY(-2px);
}

.earlier-years {
    margin-left: auto;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.earlier-list {
    list-style: none;
    display: grid;
    gap: 0.95rem;
    padding: 0.2rem 0 1rem;
    border-top: 1px solid var(--border);
}

.earlier-role {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.earlier-role span {
    display: block;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.12rem;
}

/* Approach */

.principles {
    display: grid;
    gap: 0.75rem;
}

.principle {
    padding: 1.15rem 1.1rem 1.2rem;
}

.principle h3,
.toolkit h3 {
    font-size: 1.05rem;
    letter-spacing: -0.015em;
    margin-bottom: 0.4rem;
}

.toolkit {
    margin-top: 0.9rem;
    padding: 1.15rem 1.1rem 1.25rem;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-list li {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
}

/* Footer */

.site-footer {
    background: var(--primary);
    color: #cbd5e1;
    padding: 2rem 0 1.75rem;
}

.footer-inner {
    display: grid;
    gap: 1.1rem;
}

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

.footer-name {
    color: #fff;
    font-weight: 700;
}

.footer-role,
.footer-copy {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 0.9rem;
}

@media (max-width: 1240px) {
    .back-to-top {
        display: none;
    }
}

.back-to-top {
    position: fixed;
    right: 0.85rem;
    bottom: 0.85rem;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    z-index: 900;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--accent);
}

/* Tablet and up */

@media (min-width: 720px) {
    .container {
        width: min(100% - 2rem, var(--container));
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        border: 0;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 0.15rem;
    }

    .nav-list a {
        min-height: 40px;
        padding: 0.4rem 0.75rem;
        font-size: 0.92rem;
        font-weight: 600;
        border-radius: 999px;
    }

    .nav-cta {
        margin-top: 0;
        margin-left: 0.35rem;
        padding-inline: 0.95rem;
    }

    .hero {
        padding: 3.5rem 0 3.25rem;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .btn-primary {
        grid-column: auto;
    }

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

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 1.75rem;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem 1.25rem;
    }

    .footer-links a {
        min-height: 36px;
    }
}

@media (min-width: 880px) {
    .case,
    .job {
        display: grid;
        grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
        gap: 0.4rem 1.75rem;
        padding: 1.35rem 1.4rem;
    }

    .case-meta,
    .job-meta {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .job-body h3,
    .case-meta h3 {
        margin-top: 0;
    }

    .principles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .earlier-role span {
        display: inline;
        margin-right: 0.55rem;
    }

    .earlier-role span::after {
        content: "·";
        margin-left: 0.55rem;
        color: var(--border);
    }
}

@media (hover: hover) {
    .proof-list a,
    .case,
    .job,
    .principle {
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .case:hover,
    .job:hover,
    .principle:hover {
        border-color: #cbd5e1;
        box-shadow: var(--shadow-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .back-to-top,
    .hero-actions,
    .nav-toggle,
    .proof-list {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero,
    .section-alt,
    .case,
    .job,
    .principle,
    .earlier,
    .toolkit {
        background: #fff !important;
        box-shadow: none !important;
        border-color: #ddd !important;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    .site-footer {
        background: #fff;
        color: #000;
    }

    .footer-links a,
    .footer-name,
    .footer-role,
    .footer-copy {
        color: #000;
    }
}

/* Outline button: same family as .btn-primary, for the Calendly link next to Download resume. */
.btn-outline {
    grid-column: 1 / -1;
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
}

@media (min-width: 720px) {
    .btn-outline {
        grid-column: auto;
    }
}

.footer-links .footer-x {
    gap: 0.4rem;
}

.icon-x {
    flex: none;
}
