:root {
    --bg-color: #F4F4F0;
    --text-primary: #1A1A1A;
    --text-secondary: #555550;
    --accent-orange: #FF5500;
    --accent-orange-text: #9A3412;
    --border-heavy: 2px solid #1A1A1A;
    --border-light: 1px solid #C0C0B8;
    --font-ui: 'Space Grotesk', sans-serif;
    --font-mono: 'Courier Prime', monospace;
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.5;
    padding: 20px;
    overflow-x: hidden;
    max-width: 100%;
}

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

.container {
    max-width: 1400px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    border: var(--border-heavy);
    background-color: #FFFFFF;
    animation: fadeInBody 0.6s ease-out forwards;
}

site-header,
site-footer {
    display: block;
}

header {
    border-bottom: var(--border-heavy);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    background: #FFF;
    min-width: 0;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    text-decoration: none;
    color: inherit;
    border-right: var(--border-heavy);
    min-width: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
    overflow-wrap: anywhere;
}

nav {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

nav a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-left: var(--border-light);
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

nav a:hover,
nav a.active {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.content-section {
    padding: 50px 40px;
    border-bottom: var(--border-heavy);
}

.section-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 12px;
    background-color: var(--accent-orange);
    vertical-align: middle;
    animation: blinkBlock 1.5s infinite;
}

@keyframes blinkBlock {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.card {
    border: var(--border-heavy);
    padding: 24px;
    background: #FFF;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 6px 6px 0px var(--text-primary);
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}

.card h2,
.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card h2 {
    font-size: 1.4rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.lede {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 16px;
}

.lede + .lede {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.section-copy {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 900px;
}

.section-copy + .section-copy {
    margin-top: 20px;
}

.action-note {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-orange-text);
    font-weight: 700;
}

.section-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.section-row p {
    flex: 1 1 320px;
    margin-bottom: 0;
}

.section-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    width: 340px;
}

@media (max-width: 700px) {
    .section-actions {
        width: 100%;
    }
}

.btn {
    font-family: var(--font-ui);
    font-weight: 700;
    padding: 14px 28px;
    border: var(--border-heavy);
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #FFF;
    box-shadow: 4px 4px 0px var(--text-primary);
}

.btn-primary:hover {
    background-color: #e04a00;
}

.btn-primary:active,
.btn-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-primary);
}

.btn-secondary {
    background-color: #FFF;
    color: var(--text-primary);
    box-shadow: 4px 4px 0px var(--text-primary);
}

.btn-secondary:hover {
    background-color: #f0f0eb;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

footer {
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

footer h4 {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

footer p,
footer ul {
    font-size: 0.9rem;
    color: #C0C0B8;
    list-style: none;
}

footer p + p {
    margin-top: 8px;
}

footer ul li {
    margin-bottom: 6px;
}

footer ul li a,
footer p a {
    color: #C0C0B8;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

footer ul li a:hover {
    color: #FFF;
    padding-left: 4px;
}

footer p a:hover {
    color: #FFF;
}

.footer-connect-heading {
    margin-top: 20px;
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    color: #C0C0B8;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-linkedin:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #FFF;
}

.footer-linkedin svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cocon-mark {
    text-transform: none;
}

.footer-bottom {
    grid-column: span 3;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    header {
        grid-template-columns: 1fr;
    }

    .brand-lockup {
        border-right: none;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    nav {
        border-top: var(--border-heavy);
    }

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

    footer {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        grid-column: span 1;
        flex-wrap: wrap;
        gap: 8px;
    }
}
