/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #E8EAED;
    background-color: #202124;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(32, 33, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #303134;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
}

.nav-link {
    text-decoration: none;
    color: #9AA0A6;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 1.5rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #4A7FE0;
}

.nav-link.active {
    color: #4A7FE0;
}

/* Hero Section */
.hero {
    padding: 1.5rem 0 0;
    text-align: left;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -6.25rem;
    left: -12.5rem;
    width: 37.5rem;
    height: 37.5rem;
    background: radial-gradient(circle, rgba(74, 127, 224, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.name {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: #E8EAED;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.positioning {
    font-size: 1.25rem;
    color: #4A7FE0;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.credibility {
    font-size: 1.125rem;
    color: #9AA0A6;
    margin-bottom: 3rem;
    line-height: 1.5;
    max-width: 37.5rem;
}

/* Hero two-column layout */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 50rem;
    margin: 0 auto;
}

.headshot {
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #303134;
    display: block;
}

/* Previously at strip */
.previously-at {
    background: #202124;
    padding: 1.25rem 0;
    border-bottom: 1px solid #303134;
    text-align: center;
}

.previously-at-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5F6368;
    margin-bottom: 0.625rem;
}

.previously-at-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    color: #9AA0A6;
    font-weight: 500;
}

.previously-at-items .dot {
    color: #4A7FE0;
}

.primary-links {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.link-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #4A7FE0;
    border: 1.5px solid #4A7FE0;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.link-button:hover {
    background: #4A7FE0;
    color: #202124;
    transform: translateY(-1px);
}

/* Credibility Strip */
.credibility-strip {
    background: #303134;
    padding: 2.25rem 0;
    border-top: 1px solid #303134;
    border-bottom: 1px solid #303134;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4A7FE0;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.875rem;
    color: #9AA0A6;
    font-weight: 500;
    max-width: 9.375rem;
    line-height: 1.4;
}

/* Section Styles */
section {
    padding: 2.5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #E8EAED;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Niche */
.niche {
    background: #303134;
    border-bottom: 1px solid #3c3f43;
    padding: 2.5rem 0;
}

.niche-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(74, 127, 224, 0.08);
    border: 1px solid rgba(74, 127, 224, 0.25);
    border-radius: 0.625rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.niche-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.niche-headline {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #4A7FE0;
    margin: 0 0 0.375rem;
}

.niche-body {
    font-size: 1rem;
    color: #E8EAED;
    margin: 0;
    line-height: 1.6;
}

.niche-bullets {
    list-style: none;
    padding: 0;
    max-width: 50rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2.5rem;
}

.niche-bullets li {
    font-size: 0.9375rem;
    color: #9AA0A6;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.niche-bullets li:before {
    content: "•";
    color: #4A7FE0;
    position: absolute;
    left: 0;
}

.niche-bullets strong {
    color: #E8EAED;
}

.niche-divider {
    border: none;
    border-top: 1px solid #3c3f43;
    max-width: 50rem;
    margin: 0 auto 1rem;
}

/* Capabilities */
.capabilities {
    background: #202124;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 62.5rem;
    margin: 0 auto;
}

.capability-card {
    padding: 1.75rem 2rem;
    border-radius: 0.5rem;
    background: #303134;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capability-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(74, 127, 224, 0.15);
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.capability-icon {
    font-size: 1.375rem;
    flex-shrink: 0;
}

.capability-card h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #E8EAED;
}

.capability-card ul {
    list-style: none;
    padding: 0;
}

.capability-card li {
    font-size: 0.9375rem;
    color: #9AA0A6;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.capability-card li:before {
    content: "•";
    color: #4A7FE0;
    position: absolute;
    left: 0;
}

.capability-card li:last-child {
    margin-bottom: 0;
}

/* Impact Section */
.impact {
    background: #303134;
    border-top: 1px solid #303134;
    border-bottom: 1px solid #303134;
}

.achievements {
    display: grid;
    gap: 3rem;
    max-width: 50rem;
    margin: 0 auto;
}

.achievement {
    background: #202124;
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 3px solid #4A7FE0;
    box-shadow: 0 2px 0.5rem rgba(74, 127, 224, 0.1);
    transition: box-shadow 0.2s ease;
    position: relative;
    text-align: left;
}

.achievement:hover {
    box-shadow: 0 4px 1rem rgba(74, 127, 224, 0.2);
}

.achievement h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #E8EAED;
    margin-bottom: 1rem;
}

.achievement ul {
    list-style: none;
    padding: 0;
}

.achievement li {
    font-size: 1rem;
    color: #9AA0A6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.achievement li:before {
    content: "•";
    color: #4A7FE0;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.achievement li:last-child {
    margin-bottom: 0;
}

/* Case study rows inside achievements */
.case-study {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.case-row {
    display: grid;
    grid-template-columns: 6.25rem 1fr;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: baseline;
}

.case-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.case-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A7FE0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 0.125rem;
    flex-shrink: 0;
}

.case-text {
    font-size: 0.9375rem;
    color: #9AA0A6;
    line-height: 1.6;
}

.outcomes-row {
    align-items: flex-start;
}

.outcomes-row ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outcomes-row li {
    font-size: 0.9375rem;
    color: #9AA0A6;
    padding-left: 1rem;
    position: relative;
    line-height: 1.6;
    margin-bottom: 0.375rem;
}

.outcomes-row li:last-child {
    margin-bottom: 0;
}

.outcomes-row li:before {
    content: "•";
    color: #4A7FE0;
    position: absolute;
    left: 0;
}

/* CV Downloads */
.cv-downloads {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.cv-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #E8EAED;
    border: 1.5px solid #3c3f43;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.cv-button:hover {
    border-color: #4A7FE0;
    color: #4A7FE0;
    transform: translateY(-1px);
}

/* Brand icon colours — SVG inherits via currentColor */
.cv-button--email svg    { color: #EA4335; }
.cv-button--linkedin svg { color: #0A66C2; }
.cv-button--medium svg   { color: #9AA0A6; }

/* On hover, icon colour follows the button hover colour */
.cv-button:hover svg { color: #4A7FE0; }

/* Writing Section */
.writing {
    background: #202124;
    border-top: 1px solid #303134;
}

.articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.5rem;
    max-width: 62.5rem;
    margin: 0 auto;
}

.article {
    padding: 1.5rem;
    background: #303134;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    text-align: left;
}

.article:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(74, 127, 224, 0.15);
}

.article h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article h3 a {
    color: #E8EAED;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article h3 a:hover {
    color: #4A7FE0;
}

.article-meta {
    font-size: 0.875rem;
    color: #4A7FE0;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.article p {
    font-size: 0.9375rem;
    color: #9AA0A6;
    line-height: 1.5;
}

/* First 90 Days Section */
.ninety-days {
    background: #303134;
    border-top: 1px solid #303134;
    border-bottom: 1px solid #303134;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.5rem;
    max-width: 62.5rem;
    margin: 0 auto;
}

.days-phase {
    padding: 1.75rem;
    background: #202124;
    border-radius: 0.5rem;
    border-left: 3px solid #4A7FE0;
}

.days-phase h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #4A7FE0;
    margin-bottom: 1rem;
}

.days-phase ul {
    list-style: none;
    padding: 0;
}

.days-phase li {
    font-size: 0.9375rem;
    color: #9AA0A6;
    margin-bottom: 0.625rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.6;
}

.days-phase li:before {
    content: "•";
    color: #4A7FE0;
    position: absolute;
    left: 0;
}

.days-phase li:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background: #202124;
}

.contact-content {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
}

.contact-description {
    max-width: 40rem;
    margin: 0 auto 3.5rem;
}

.contact-description p {
    font-size: 1.25rem;
    color: #E8EAED;
    line-height: 1.7;
    font-weight: 400;
}

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

.contact-section {
    text-align: center;
    padding: 1rem 1.25rem;
    background: #303134;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(74, 127, 224, 0.15);
}

.contact-section h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.contact-section h3 a {
    color: #9AA0A6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-section h3 a:hover {
    color: #4A7FE0;
}

.contact-link {
    color: #4A7FE0;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    word-break: break-word;
    line-height: 1.3;
}

.contact-link:hover {
    color: #3A6FD0;
}

.contact-text {
    color: #9AA0A6;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.3;
}

/* Footer */
.footer {
    background: #202124;
    border-top: 1px solid #303134;
    color: #9AA0A6;
    padding: 2.5rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.8125rem;
    color: #5F6368;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-link {
        margin: 0 1rem;
        font-size: 0.8125rem;
    }

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

    .name {
        font-size: 2.25rem;
    }

    .positioning {
        font-size: 1.125rem;
    }

    .credibility {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .primary-links {
        gap: 0.75rem;
    }

    .link-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    section {
        padding: 3.75rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-photo {
        order: -1;
    }

    .headshot {
        width: 7rem;
        height: 7rem;
        margin: 0 auto;
    }

    .metric-icon {
        font-size: 1.25rem;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .metric-label {
        font-size: 0.8125rem;
    }

    .niche-callout {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .niche-bullets {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-row {
        grid-template-columns: 5rem 1fr;
    }

    .capability-card {
        padding: 1.5rem;
    }

    .achievements {
        gap: 2rem;
    }

    .achievement {
        padding: 1.5rem;
    }

    .achievement-icon {
        font-size: 1.25rem;
    }

    .articles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .days-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-icon {
        font-size: 1.25rem;
    }

    .contact-description p {
        font-size: 1.0625rem;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .contact-section {
        padding: 0.875rem 1rem;
    }

    .contact-icon {
        font-size: 1.75rem;
    }

    .contact-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .nav-link {
        margin: 0 0.75rem;
        font-size: 0.75rem;
    }

    .name {
        font-size: 2rem;
    }

    .positioning {
        font-size: 1rem;
    }

    .credibility {
        font-size: 0.9375rem;
    }

    .primary-links {
        flex-direction: column;
        align-items: center;
    }

    .link-button {
        width: 12.5rem;
        text-align: center;
    }

    .metrics {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .capability-card h3 {
        font-size: 1rem;
    }

    .capability-card li {
        font-size: 0.875rem;
    }

    .achievement h3 {
        font-size: 1.125rem;
    }

    .achievement li {
        font-size: 0.9375rem;
    }

    .article h3 {
        font-size: 1rem;
    }

    .article-meta {
        font-size: 0.8125rem;
    }

    .article p {
        font-size: 0.875rem;
    }

    .contact-section h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
    }

    .contact-link {
        font-size: 0.8125rem;
    }
}

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

    .nav,
    .link-button,
    .pillar,
    .achievement,
    .article {
        transition: none;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.link-button:focus,
.contact-link:focus,
.article h3 a:focus {
    outline: 2px solid #4A7FE0;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav {
        display: none;
    }

    .hero {
        padding: 2.5rem 0;
    }

    section {
        padding: 2.5rem 0;
    }

    .contact-links {
        display: none;
    }
}
