@charset "UTF-8";

/* CSS Custom Properties for theming and performance */
:root {
    --ink-900: #0c1b2a;
    --ink-800: #15263a;
    --ink-700: #22344a;
    --sand-100: #f8f4ee;
    --sand-200: #efe6da;
    --surface: #ffffff;
    --accent: #c46a3b;
    --accent-2: #1f8a83;
    --text: #2d3a47;
    --heading: #0c1b2a;
    --border: #e2d7c8;
    --surface-soft: #fbf7f1;
    --border-soft: rgba(12, 27, 42, 0.12);
    --shadow-lg: 0 24px 60px -40px rgba(12, 27, 42, 0.7);
    --shadow-md: 0 16px 36px -28px rgba(12, 27, 42, 0.45);
    --shadow-card: 0 18px 40px -32px rgba(12, 27, 42, 0.45);
    --shadow-card-hover: 0 30px 64px -38px rgba(12, 27, 42, 0.55);
    --accent-glow: rgba(196, 106, 59, 0.18);
    --teal-glow: rgba(31, 138, 131, 0.16);
    --radius-lg: 18px;
    --radius-md: 12px;
    --transition: all 0.25s ease;
}

/* Performance: Universal box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Accessibility and UX */
html {
    overflow-y: scroll; /* Prevent layout shift from scrollbar appearing/disappearing */
}

/* Only enable smooth scroll for anchor clicks, not page load/refresh */
@media (prefers-reduced-motion: no-preference) {
    html:focus-within {
        scroll-behavior: smooth;
    }
}

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

body {
    font-family: "Manrope", sans-serif;
    line-height: 1.7;
    color: var(--text) !important;
    background: radial-gradient(circle at 15% 15%, rgba(196, 106, 59, 0.12), transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(31, 138, 131, 0.12), transparent 50%),
        var(--sand-100);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Override Bootstrap text colors */
p, li, dd {
    color: var(--text);
}

.text-muted {
    color: #5a6978 !important;
}

.small, small {
    color: var(--text) !important;
}

/* Ensure section text is always visible */
.section p,
.section li,
.section span:not(.metric-value):not(.metric-label):not(.eyebrow) {
    color: var(--text);
}

/* Bootstrap card overrides */
.card, .card-body {
    color: var(--text) !important;
}

/* Strong text visibility */
strong, b {
    color: var(--heading);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility: Visually hidden class for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
    color: white;
}

/* Links with performance-optimized transitions */
a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover,
a:focus {
    color: var(--accent);
}

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

/* Navigation with GPU acceleration */
.navbar {
    background: #f8f4ee !important;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    min-height: 62px; /* Prevent layout shift from font loading */
    will-change: transform;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: "Fraunces", serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--heading) !important;
}

.navbar-brand span {
    color: var(--heading) !important;
}

.navbar-brand-logo {
    height: 34px;
    width: auto;
    margin-right: 0.65rem;
    filter: drop-shadow(0 8px 16px rgba(12, 27, 42, 0.18));
    transition: var(--transition);
}

.nav-link {
    color: var(--heading) !important;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

.navbar-toggler {
    border-color: rgba(12, 27, 42, 0.2);
}

.section {
    padding: 5.5rem 0;
    background: rgba(255, 255, 255, 0.96);
    position: relative;
    scroll-margin-top: 90px;
}

.section--soft {
    background: linear-gradient(180deg, rgba(239, 230, 218, 0.8), rgba(251, 247, 241, 0.95));
}

.section-header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.section-header .subhead {
    max-width: 855px;
    margin: 0 auto;
}

.eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--accent-2);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Fraunces", serif;
    color: var(--heading) !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.display-3 {
    font-size: 3.6rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.hero-section .display-3 {
    color: #fdf6ed !important;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4 {
    color: #fdf6ed !important;
}

.hero-section {
    background: linear-gradient(120deg, #0c1b2a 0%, #16293f 55%, #0c1b2a 100%);
    color: #fdf6ed;
    padding: 8rem 0 6.5rem;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 90px;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 60vw;
    height: 60vw;
    top: -25vw;
    right: -20vw;
    background: radial-gradient(circle, rgba(196, 106, 59, 0.3), transparent 65%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 40vw;
    height: 40vw;
    bottom: -25vw;
    left: -15vw;
    background: radial-gradient(circle, rgba(31, 138, 131, 0.35), transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.hero-section .eyebrow {
    color: rgba(253, 246, 237, 0.85) !important;
}

.hero-section p {
    color: rgba(253, 246, 237, 0.85) !important;
}

.hero-section span {
    color: #fdf6ed !important;
}

.hero-tagline {
    color: rgba(253, 246, 237, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    max-width: 650px;
}

.hero-section .lead {
    color: rgba(253, 246, 237, 0.78);
    max-width: 640px;
}

.hero-ctas .btn {
    margin-bottom: 0.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
}

.hero-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.hero-card-body {
    color: rgba(253, 246, 237, 0.86);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0 1rem;
}

.metric-value {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 1.7rem;
    color: #fdf6ed;
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(253, 246, 237, 0.7);
}

.hero-note {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(253, 246, 237, 0.7);
}

.badge.accent {
    background: rgba(31, 138, 131, 0.12);
    color: var(--heading);
    border: 1px solid rgba(31, 138, 131, 0.25);
    padding: 0.55rem 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    font-size: 0.85rem;
}

.hero-section .badge.accent {
    background: rgba(255, 255, 255, 0.12);
    color: #fdf6ed;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 12px 24px -18px rgba(196, 106, 59, 0.7);
}

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

.btn-secondary {
    background: transparent;
    border: 1px solid var(--ink-900);
    color: var(--ink-900);
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.hero-section .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fdf6ed;
}

.hero-section .pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-section .pill p,
.hero-section .pill .card-text,
.hero-section .pill .small {
    color: rgba(253, 246, 237, 0.85) !important;
}

.subhead {
    color: var(--text) !important;
    font-size: 1.05rem;
}

.about-list {
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.5rem;
}

.about-list li {
    list-style: none;
    margin-bottom: 0.2rem;
    color: var(--heading) !important;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.about-list i {
    margin-top: 0.25rem;
    color: var(--accent);
}

.identity-card {
    background: linear-gradient(135deg, #ffffff, var(--surface-soft));
    border: 1px solid rgba(196, 106, 59, 0.18);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.identity-card::before,
.identity-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.identity-card::before {
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.identity-card::after {
    top: -40%;
    right: -30%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0.9;
}

.identity-card > * {
    position: relative;
    z-index: 1;
}

.identity-card h3 {
    margin-bottom: 0.6rem;
    color: var(--heading) !important;
}

.identity-card p {
    color: var(--text) !important;
}

.identity-card .small {
    color: var(--text) !important;
}

.service-card,
.pill,
.workstream-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* GPU-accelerated hover effects */
.service-card:hover,
.pill:hover,
.workstream-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover,
    .pill:hover,
    .workstream-card:hover {
        transform: translateY(-6px);
    }
}

.service-card .card-body {
    padding: 0;
}

.card-title {
    margin-bottom: 0.75rem;
    color: var(--heading) !important;
}

.card-text {
    color: var(--text) !important;
}

.service-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--text) !important;
}

.service-list li {
    margin-bottom: 0.35rem;
    color: var(--text) !important;
}

.service-card > i {
    display: block;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.pill {
    background: linear-gradient(140deg, rgba(196, 106, 59, 0.08), rgba(31, 138, 131, 0.1));
    border-color: rgba(31, 138, 131, 0.16);
}

.pill i {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.pill p {
    margin: 0;
    color: var(--heading) !important;
}

.pill strong {
    color: var(--heading) !important;
}

.portfolio-columns {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

.portfolio-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portfolio-col .service-card {
    height: auto;
}

@media (max-width: 768px) {
    .portfolio-columns {
        flex-direction: column;
    }
}

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

.workstream-card h3 {
    margin-bottom: 0.6rem;
}

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

.impact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.impact-value {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 1.8rem;
    color: var(--heading) !important;
}

.impact-label {
    margin: 0.35rem 0 0;
    font-weight: 600;
    color: var(--heading) !important;
}

.impact-note {
    margin: 0.35rem 0 0;
    color: var(--text) !important;
    font-size: 0.9rem;
}

.text-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.service-card::before,
.workstream-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.28;
    pointer-events: none;
}

#why-consulting {
    background: linear-gradient(135deg, rgba(31, 138, 131, 0.08), rgba(196, 106, 59, 0.06));
    border-top: 2px solid rgba(31, 138, 131, 0.2);
}

#featured-work {
    background: linear-gradient(180deg, rgba(248, 244, 238, 0.8), rgba(255, 255, 255, 0.98) 45%, rgba(248, 244, 238, 0.85));
    overflow: hidden;
}

#featured-work .row > :first-child .service-card {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(196, 106, 59, 0.08), rgba(255, 255, 255, 0.95));
    position: relative;
}

#featured-work .row > :first-child .service-card::after {
    content: "PRIMARY";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: rgba(196, 106, 59, 0.12);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(196, 106, 59, 0.3);
}

#company::before,
#company::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

#company::before {
    width: 360px;
    height: 360px;
    top: -140px;
    right: -160px;
    background: radial-gradient(circle, var(--accent-glow), transparent 65%);
    opacity: 0.9;
}

#company::after {
    width: 280px;
    height: 280px;
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle, var(--teal-glow), transparent 65%);
    opacity: 0.9;
}

#company > .container {
    position: relative;
    z-index: 1;
}

#company .col-lg-7 p:not(.small) {
    font-size: 1.05rem;
}

#company .identity-card .eyebrow {
    color: var(--accent);
}

.pgp-section {
    padding-top: 7.5rem;
    background: var(--sand-200);
}

.pgp-shell {
    max-width: 980px;
    margin: 0 auto;
}

.pgp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.pgp-header h1 {
    margin-bottom: 0.6rem;
    min-height: 2.5rem; /* Prevent layout shift from font loading */
}

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

.pgp-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pgp-panel {
    background: var(--sand-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.pgp-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.contact-form-card {
    margin-top: 2rem;
    background: var(--sand-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.contact-form-card h2 {
    margin-bottom: 0.6rem;
}

.contact-form-frame {
    margin: 1rem 0 1.25rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #ffffff;
    height: 720px;
}

.contact-form-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.pgp-meta {
    margin: 0;
}

.pgp-meta dt {
    font-weight: 600;
    color: var(--heading) !important;
    margin-top: 0.75rem;
}

.pgp-meta dt:first-child {
    margin-top: 0;
}

.pgp-meta dd {
    margin: 0;
    color: var(--text) !important;
    word-break: break-word;
}

.pgp-panel h3 {
    color: var(--heading) !important;
}

.pgp-panel p {
    color: var(--text) !important;
}

.pgp-header p {
    color: var(--text) !important;
}

.pgp-key-block {
    margin-top: 2rem;
    scroll-margin-top: 110px;
}

.pgp-key {
    margin-top: 0.5rem;
    margin-bottom: 0;
    background: var(--ink-900) !important;
    color: #fdf6ed !important;
    border-radius: var(--radius-md);
    padding: 1.0rem;
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    contain: layout;
}

.cta-section {
    text-align: center;
    padding: 4.5rem 0;
    background: linear-gradient(140deg, rgba(196, 106, 59, 0.15), rgba(31, 138, 131, 0.18));
}

footer {
    background: var(--ink-900);
    padding: 2.5rem 0;
    color: rgba(253, 246, 237, 0.9) !important;
}

footer p,
footer span,
footer div {
    color: rgba(253, 246, 237, 0.9) !important;
}

footer .small,
footer p.small {
    color: rgba(253, 246, 237, 0.75) !important;
}

footer a {
    color: rgba(253, 246, 237, 0.95) !important;
}

footer a:hover {
    color: #ffffff !important;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rise-in 0.8s ease forwards;
}

.reveal.delay-1 {
    animation-delay: 0.1s;
}

.reveal.delay-2 {
    animation-delay: 0.2s;
}

.reveal.delay-3 {
    animation-delay: 0.3s;
}

.reveal.delay-4 {
    animation-delay: 0.4s;
}

.reveal.delay-5 {
    animation-delay: 0.5s;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 992px) {
    .display-3 {
        font-size: 2.9rem;
    }

    .hero-section {
        padding: 7rem 0 5.5rem;
    }

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

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

@media (max-width: 768px) {
    .display-3 {
        font-size: 2.3rem;
    }

    .section {
        padding: 4.5rem 0;
    }

    .pgp-section {
        padding-top: 6.5rem;
    }

    .pgp-card {
        padding: 1.9rem;
    }

    .pgp-info-grid {
        grid-template-columns: 1fr;
    }

    .pgp-actions .btn {
        width: 100%;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .about-list {
        grid-template-columns: 1fr;
    }

    .hero-ctas .btn {
        width: 100%;
    }

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

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

}

@media (max-width: 576px) {
    .hero-card {
        padding: 1.5rem;
    }

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

    .pgp-key {
        font-size: 0.66rem;
        padding: 0.9rem;
    }

    .contact-form-frame iframe {
        min-height: 640px;
    }

    /* Improved touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 0.85rem 1.85rem;
    }

    .nav-link {
        padding: 0.75rem 1.1rem;
    }
}

/* Improved button hover states for better feedback */
.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Better loading state for images */
img[loading="lazy"] {
    background: var(--sand-100);
}

/* Improved card interactivity */
.service-card,
.pill,
.workstream-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* Better focus management for keyboard navigation */
*:focus {
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--accent);
}

/* Enhanced Typography Scale for Better Readability */
@media (min-width: 1400px) {
    .display-3 {
        font-size: 4rem;
    }

    body {
        font-size: 1.05rem;
    }

    .subhead {
        font-size: 1.125rem;
    }
}

/* Print Styles for Professional Output */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col,
    [class*="col-"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

    .navbar,
    .skip-to-content {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }

    @page {
        margin: 2cm;
    }
}

/* Smooth Scrolling with Better Performance */
@supports (scroll-behavior: smooth) {
    html:focus-within {
        scroll-behavior: smooth;
    }
}

/* Improved Loading States */
.btn[disabled],
.btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Enhanced Link Underlines for Better Accessibility */
@supports (text-decoration-thickness: 2px) {
    .text-link {
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }
}

/* Reduced Motion for Animations */
@media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .pill:hover,
    .workstream-card:hover {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border: #000;
        --border-soft: #000;
    }

    .btn-primary,
    .btn-secondary {
        border-width: 2px;
    }

    a {
        text-decoration: underline;
    }
}

/* Dark Mode Support - Disabled to ensure consistent light theme */
/* Users can uncomment this block if dark mode is desired */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --ink-900: #f8f4ee;
        --ink-800: #efe6da;
        --surface: #1a1a1a;
        --surface-soft: #242424;
        --text: #d1d1d1;
        --heading: #f8f4ee;
        --border: #404040;
        --border-soft: rgba(255, 255, 255, 0.1);
        --sand-100: #1a1a1a;
        --sand-200: #242424;
    }

    body {
        background: #0d0d0d;
    }

    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }

    .hero-section {
        background: linear-gradient(120deg, #1a1a1a 0%, #2a2a2a 55%, #1a1a1a 100%);
    }

    img {
        opacity: 0.9;
    }
}
*/

/* Selection Styling */
::selection {
    background: var(--accent);
    color: white;
}

::-moz-selection {
    background: var(--accent);
    color: white;
}

/* Improved Scroll Padding for Fixed Header */
:target {
    scroll-margin-top: 100px;
}

/* Enhanced Card Depth on Hover */
.service-card:hover::before,
.workstream-card:hover::before {
    opacity: 0.45;
}

/* Better Icon Sizing */
.fa-solid,
.fa-regular,
.fa-brands {
    display: inline-block;
    vertical-align: middle;
}

/* Improved Table Responsiveness (if tables added in future) */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Skeleton Loading State */
.skeleton {
    background: linear-gradient(90deg, var(--sand-100) 25%, var(--sand-200) 50%, var(--sand-100) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
