/* 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;
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: #4A7FE0;
    border-radius: 1px;
    transition: left 0.3s ease, width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.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: 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;
}

/* Ambient background blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero-blob--1 {
    width: 40rem;
    height: 40rem;
    top: -8rem;
    right: 5%;
    background: radial-gradient(circle, rgba(74, 127, 224, 0.055) 0%, transparent 65%);
    animation: blob-drift-1 18s ease-in-out infinite alternate;
}

.hero-blob--2 {
    width: 30rem;
    height: 30rem;
    bottom: -4rem;
    left: 15%;
    background: radial-gradient(circle, rgba(74, 127, 224, 0.04) 0%, transparent 65%);
    animation: blob-drift-2 22s ease-in-out infinite alternate;
}

.hero-blob--3 {
    width: 22rem;
    height: 22rem;
    top: 30%;
    left: 50%;
    background: radial-gradient(circle, rgba(100, 150, 230, 0.035) 0%, transparent 65%);
    animation: blob-drift-3 15s ease-in-out infinite alternate;
}

@keyframes blob-drift-1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-3rem, 2rem) scale(1.08); }
}

@keyframes blob-drift-2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(2rem, -3rem) scale(0.94); }
}

@keyframes blob-drift-3 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-1.5rem, 2.5rem) scale(1.05); }
}

/* Ensure hero content sits above blobs */
.hero .container {
    position: relative;
    z-index: 1;
}

.name {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: #E8EAED;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #FFFFFF 0%, #90B4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.headshot:hover {
    border-color: #4A7FE0;
    box-shadow: 0 0 0 4px rgba(74, 127, 224, 0.15);
}

/* 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.75rem 3rem;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #E8EAED;
    opacity: 0.5;
    transition: opacity 0.25s ease, filter 0.25s ease;
    cursor: default;
    letter-spacing: 0.02em;
}

.company-logo svg {
    display: block;
    flex-shrink: 0;
}

.company-logo-img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    border-radius: 5px;
    flex-shrink: 0;
}

.company-logo-img--light-bg {
    mix-blend-mode: multiply;
}

.company-logo:hover {
    opacity: 0.85;
    filter: brightness(1.2);
}

/* 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 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(74, 127, 224, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    color: #4A7FE0;
    flex-shrink: 0;
}

.metric-icon svg {
    display: block;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4A7FE0;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #6B9AE8 0%, #90B4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
    background: linear-gradient(120deg, #FFFFFF 0%, #90B4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 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 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(74, 127, 224, 0.1);
    border-radius: 0.5rem;
    flex-shrink: 0;
    color: #4A7FE0;
}

.niche-icon svg {
    display: block;
}

.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: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(74, 127, 224, 0.08) 0%, transparent 70%),
                #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: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top-color: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capability-card:hover {
    transform: translateY(-2px) scale(1.01);
    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 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(74, 127, 224, 0.1);
    border-radius: 0.5rem;
    flex-shrink: 0;
    color: #4A7FE0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.capability-card:hover .capability-icon {
    transform: scale(1.1) rotate(-4deg);
    color: #90B4FF;
}

.capability-icon svg {
    display: block;
}

.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-bottom: 1px solid #3c3f43;
}

.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-row--collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    border-bottom: none;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}

.case-row--collapsible.expanded {
    max-height: 8rem;
    opacity: 1;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.case-study-toggle {
    display: inline-block;
    margin-top: 1rem;
    background: none;
    border: none;
    color: #4A7FE0;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
    font-family: var(--font-primary);
}

.case-study-toggle:hover {
    color: #6B9AE8;
}

.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);
}

.cv-button:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* 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) scale(1.01);
    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.5rem;
    font-weight: 500;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.article-tag {
    display: inline-block;
    background: rgba(74, 127, 224, 0.1);
    color: #4A7FE0;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 2rem;
    padding: 0.2rem 0.625rem;
    letter-spacing: 0.01em;
}

.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;
}

/* Timeline (90 Days interactive) */
.timeline {
    max-width: 50rem;
    margin: 0 auto;
}

.timeline-nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.timeline-nodes::before {
    content: '';
    position: absolute;
    top: calc(0.5rem + 0.875rem);
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.5rem;
    color: #9AA0A6;
    transition: color 0.2s ease;
    font-family: var(--font-primary);
}

.timeline-node:hover {
    color: #E8EAED;
}

.timeline-node--active {
    color: #E8EAED;
}

.timeline-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #303134;
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
    flex-shrink: 0;
}

.timeline-node--active .timeline-dot {
    background: #4A7FE0;
    border-color: #4A7FE0;
    box-shadow: 0 0 0 4px rgba(74, 127, 224, 0.2);
    transform: scale(1.15);
}

.timeline-node:hover .timeline-dot {
    border-color: #4A7FE0;
    transform: scale(1.1);
}

.timeline-range {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: inherit;
    line-height: 1;
}

.timeline-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: inherit;
    text-align: center;
    line-height: 1.3;
}

.timeline-panel {
    display: none;
    background: #202124;
    border-radius: 0.5rem;
    border-left: 3px solid #4A7FE0;
    padding: 1.75rem 2rem;
}

.timeline-panel--active {
    display: block;
    animation: timeline-fade-in 0.3s ease;
}

@keyframes timeline-fade-in {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.timeline-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

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

/* Stat pull-quote callouts in case studies */
.stat-pullquote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin: 1.25rem 0 0.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(74, 127, 224, 0.06);
    border-radius: 0.375rem;
    border-top: 1px solid rgba(74, 127, 224, 0.15);
    border-bottom: 1px solid rgba(74, 127, 224, 0.15);
}

.stat-pullquote-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-pullquote-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, #6B9AE8 0%, #90B4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.stat-pullquote-desc {
    font-size: 0.75rem;
    color: #9AA0A6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.stat-pullquote-sep {
    width: 1px;
    height: 3rem;
    background: rgba(74, 127, 224, 0.25);
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, #202124 0%, rgba(74, 127, 224, 0.06) 50%, #202124 100%);
    padding: 4rem 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 127, 224, 0.5), transparent);
}

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

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

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

/* 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;
    }

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

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

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

    .timeline-range {
        font-size: 0.6875rem;
    }

    .stat-pullquote {
        gap: 1.5rem;
        padding: 1rem;
    }

    .stat-pullquote-num {
        font-size: 2rem;
    }

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

@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;
    }

    .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;
    }

    .stat-pullquote {
        gap: 1rem;
        padding: 0.875rem;
    }

    .stat-pullquote-num {
        font-size: 1.75rem;
    }

}

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

    .nav,
    .achievement,
    .article {
        transition: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-indicator {
        transition: none;
    }

    .hero-blob {
        animation: none;
    }

    .case-row--collapsible {
        transition: none;
    }

    .timeline-panel--active {
        animation: none;
    }

    .capability-card,
    .article,
    .cv-button,
    .headshot {
        transition: none;
    }

    .capability-card:hover .capability-icon {
        transform: none;
    }

    .capability-icon {
        transition: none;
    }
}

/* Focus styles for accessibility */
.nav-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;
    }

    .cv-downloads {
        display: none;
    }
}

/* Scroll-triggered entrance animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Hero entrance animations */
.hero-animate {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.625rem 1.25rem;
    background: #4A7FE0;
    color: #fff;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(74, 127, 224, 0.45);
    z-index: 999;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta:hover {
    background: #3a6fd0;
    transform: translateY(-2px);
}

.floating-cta:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
}

/* ===== Blog ===== */

/* Active nav link — used on blog pages */
.nav-link--active {
    color: #4A7FE0;
}

/* Blog listing — hero */
.blog-hero {
    padding: 0 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #FFFFFF 0%, #90B4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1.0625rem;
    color: #9AA0A6;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog listing — grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.blog-card {
    background: #303134;
    border-radius: 0.5rem;
    padding: 1.75rem 2rem;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
    border-left: 3px solid transparent;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(74, 127, 224, 0.15);
    border-left-color: #4A7FE0;
}

.blog-card-meta {
    font-size: 0.8125rem;
    color: #4A7FE0;
    font-weight: 500;
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-card h2 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #E8EAED;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9375rem;
    color: #9AA0A6;
    line-height: 1.6;
    margin: 0;
}

.blog-card-readmore {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #4A7FE0;
    font-weight: 500;
}

/* Article page layout */
.article-page {
    padding-top: 5rem;
    min-height: 100vh;
}

.article-container {
    max-width: 45rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* Article header */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #303134;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: #E8EAED;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.875rem;
    color: #5F6368;
    margin-bottom: 1rem;
}

.article-meta span + span::before {
    content: ' · ';
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.blog-tag {
    display: inline-block;
    background: rgba(74, 127, 224, 0.1);
    color: #4A7FE0;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 2rem;
    padding: 0.25rem 0.75rem;
}

/* Article body — prose */
.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #9AA0A6;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #E8EAED;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #E8EAED;
    margin: 2rem 0 0.75rem;
}

.article-body h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9AA0A6;
    margin: 1.5rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body strong {
    color: #E8EAED;
    font-weight: 600;
}

.article-body em {
    font-style: italic;
}

.article-body a {
    color: #4A7FE0;
    text-decoration: underline;
    text-decoration-color: rgba(74, 127, 224, 0.4);
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: #6B9AE8;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem 1.5rem;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 3px solid #4A7FE0;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(74, 127, 224, 0.06);
    border-radius: 0 0.375rem 0.375rem 0;
}

.article-body blockquote p {
    margin: 0;
    font-style: italic;
}

.article-body hr {
    border: none;
    border-top: 1px solid #303134;
    margin: 2.5rem 0;
}

/* Code blocks */
.article-body pre {
    background: #303134;
    border-radius: 0.375rem;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #3c3f43;
}

.article-body pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: #E8EAED;
    background: none;
    padding: 0;
    border-radius: 0;
    line-height: 1.6;
}

.article-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
    background: #303134;
    color: #E8EAED;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    display: block;
    overflow-x: auto;
}

.article-body th {
    background: #303134;
    color: #E8EAED;
    font-weight: 600;
    text-align: left;
    padding: 0.625rem 1rem;
    border-bottom: 2px solid #4A7FE0;
    white-space: nowrap;
}

.article-body td {
    padding: 0.625rem 1rem;
    color: #9AA0A6;
    border-bottom: 1px solid #303134;
}

.article-body tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Table of contents */
.article-body .toc {
    background: #303134;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-left: 3px solid #4A7FE0;
}

.article-body .toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-body .toc li {
    margin-bottom: 0.375rem;
}

.article-body .toc a {
    font-size: 0.9375rem;
    text-decoration: none;
}

.article-body .toc a:hover {
    text-decoration: underline;
}

/* Article footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #303134;
}

.article-back-link {
    color: #4A7FE0;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-back-link:hover {
    color: #6B9AE8;
}

/* Blog responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 0 0 2rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 4rem;
    }

    .article-container {
        padding: 2rem 1rem 4rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

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