/* ========================================================================== 
   Roger Ehmpke site refresh
   --------------------------------------------------------------------------
   Modern presentation layer added after the existing compiled CSS.
   Uses site-* classes to avoid fighting older modules.
   ========================================================================== */

:root {
    --site-ink: #071f35;
    --site-ink-2: #102f42;
    --site-teal: #004763;
    --site-teal-2: #0a6c78;
    --site-mist: #eef5f4;
    --site-mist-2: #f7faf9;
    --site-sand: #c7b08b;
    --site-sand-soft: #e6d8be;
    --site-paper: #ffffff;
    --site-line: rgba(7, 31, 53, 0.13);
    --site-muted: #526878;
    --site-muted-2: #6c7d88;
    --site-shadow: 0 24px 70px rgba(7, 31, 53, 0.12);
    --site-shadow-soft: 0 12px 34px rgba(7, 31, 53, 0.09);
    --site-radius-xl: 2rem;
    --site-radius-lg: 1.35rem;
    --site-radius-md: 0.9rem;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--site-mist-2);
    color: var(--site-ink);
}

.site-shell {
    margin-inline: auto;
    max-width: 1180px;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
    width: 100%;
}

.site-logo {
    color: var(--site-ink);
    display: inline-block;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: none;
}

.site-logo:hover,
.site-logo:focus {
    color: var(--site-teal);
    text-decoration: none;
}

.site-section {
    padding-block: clamp(4rem, 7vw, 6.5rem);
}

.site-section--white {
    background: var(--site-paper);
}

.site-section--mist {
    background: linear-gradient(180deg, var(--site-mist-2), var(--site-mist));
}

.site-section--sand {
    background: linear-gradient(180deg, #d4c097, var(--site-sand));
}

.site-section-label,
.site-card-label {
    color: var(--site-teal);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    line-height: 1.35;
    margin: 0 0 0.8rem;
    text-transform: uppercase;
}

.site-section-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.site-section-header--center {
    margin-inline: auto;
    max-width: 790px;
    text-align: center;
}

.site-section-header--split {
    align-items: end;
    display: grid;
    gap: 1.5rem;
}

.site-section-header h2,
.site-section-header h1 {
    color: var(--site-ink);
    font-size: clamp(2.05rem, 5vw, 3.65rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin: 0;
}

.site-section-header p:not(.site-section-label) {
    color: var(--site-muted);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    margin: 1rem auto 0;
    max-width: 720px;
}

.site-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 44px;
    padding: 0.88rem 1.2rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.site-button:hover,
.site-button:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.site-button--primary {
    background: var(--site-ink);
    border: 1px solid var(--site-ink);
    color: #fff;
    box-shadow: 0 10px 24px rgba(7, 31, 53, 0.16);
}

.site-button--primary:hover,
.site-button--primary:focus {
    background: var(--site-teal);
    border-color: var(--site-teal);
    color: #fff;
}

.site-button--secondary {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--site-line);
    color: var(--site-ink);
}

.site-button--secondary:hover,
.site-button--secondary:focus {
    background: var(--site-mist);
    border-color: rgba(0, 71, 99, 0.28);
    color: var(--site-ink);
}

.site-button--light {
    background: #fff;
    border: 1px solid #fff;
    color: var(--site-ink);
}

.site-button--light:hover,
.site-button--light:focus {
    background: var(--site-sand-soft);
    border-color: var(--site-sand-soft);
    color: var(--site-ink);
}

.site-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.site-actions--card {
    margin-top: auto;
    padding-top: 1.5rem;
}

.site-pill-group,
.site-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.site-pill,
.site-tag-list span {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--site-line);
    border-radius: 999px;
    box-shadow: 0 5px 16px rgba(7, 31, 53, 0.06);
    color: var(--site-ink-2);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.55rem 0.8rem;
}

/* Hero */

.site-hero {
    background: radial-gradient(circle at top left, rgba(199, 176, 139, 0.28), transparent 30%), linear-gradient(135deg, #f7faf9, #e8f1ef);
    min-height: min(860px, calc(100vh - 2rem));
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 7rem);
    position: relative;
}

.site-hero__texture,
.site-subpage-top__texture,
.site-footer__texture {
    background-image: url('/assets/img/compass-background.webp');
    background-position: center;
    background-size: cover;
    inset: 0;
    opacity: 0.08;
    position: absolute;
    z-index: 0;
}

.site-hero__grid {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 1;
}

.site-hero__content {
    max-width: 760px;
}

.site-hero .site-logo {
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.site-hero h1 {
    color: var(--site-ink);
    font-size: clamp(3rem, 8vw, 6.4rem);
    letter-spacing: -0.065em;
    line-height: 0.95;
    margin: 1.3rem 0 0;
    max-width: 820px;
}

.site-hero__lead {
    color: var(--site-ink-2);
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    line-height: 1.45;
    margin: 1.55rem 0 0;
    max-width: 720px;
}

.site-hero__summary {
    color: var(--site-muted);
    font-size: 1.02rem;
    line-height: 1.72;
    margin: 1rem 0 0;
    max-width: 720px;
}

.site-hero__aside {
    display: grid;
    gap: 1rem;
}

.site-profile-card,
.site-model-card,
.site-copy-card,
.site-info-card,
.site-step-card,
.site-project-card,
.site-quote-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--site-line);
    box-shadow: var(--site-shadow-soft);
}

.site-profile-card {
    align-items: center;
    border-radius: var(--site-radius-xl);
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
}

.site-profile-card img {
    aspect-ratio: 4 / 5;
    background: var(--site-mist);
    border-radius: 1.35rem;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.site-profile-card h2,
.site-model-card h2 {
    color: var(--site-ink);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
}

.site-profile-card p:not(.site-card-label),
.site-model-card p {
    color: var(--site-muted);
    font-size: 0.94rem;
    line-height: 1.62;
    margin: 0.75rem 0 0;
}

.site-model-card {
    border-radius: var(--site-radius-xl);
    padding: 1.35rem;
}

.site-model-card__header {
    align-items: center;
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.site-model-card__header > span {
    align-items: center;
    background: var(--site-ink);
    border-radius: 1rem;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.site-model-card ul,
.site-check-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-model-card li {
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 1rem;
    padding: 0.85rem 0.95rem;
}

.site-model-card strong,
.site-model-card span,
.site-check-list strong,
.site-check-list span {
    display: block;
}

.site-model-card strong {
    color: var(--site-ink);
    font-size: 0.92rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.site-model-card span {
    color: var(--site-muted);
    font-size: 0.83rem;
    line-height: 1.42;
}

/* About */

.site-about-grid {
    display: grid;
    gap: 1.25rem;
}

.site-copy-card,
.site-dark-card {
    border-radius: var(--site-radius-xl);
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.site-copy-card p {
    color: var(--site-muted);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 1.1rem;
}

.site-copy-card p:last-child {
    margin-bottom: 0;
}

.site-dark-card {
    background: linear-gradient(rgba(7, 31, 53, 0.93), rgba(7, 31, 53, 0.93)), url('/assets/img/compass-background.webp');
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--site-shadow);
    color: #fff;
}

.site-dark-card .site-section-label {
    color: var(--site-sand-soft);
}

.site-dark-card h3 {
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin: 0;
}

.site-dark-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 1rem 0 1.25rem;
}

.site-check-list li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    padding: 1rem;
}

.site-check-list strong {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.site-check-list span {
    color: rgba(255, 255, 255, 0.73);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Cards / grids */

.site-framework-grid,
.site-card-grid,
.site-project-grid {
    display: grid;
    gap: 1rem;
}

.site-step-card,
.site-info-card,
.site-quote-card {
    border-radius: var(--site-radius-lg);
    padding: 1.35rem;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.site-step-card:hover,
.site-info-card:hover,
.site-project-card:hover,
.site-quote-card:hover {
    box-shadow: var(--site-shadow);
    transform: translateY(-2px);
}

.site-step-card > span {
    align-items: center;
    background: var(--site-mist);
    border-radius: 0.8rem;
    color: var(--site-ink);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    height: 2.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 2.5rem;
}

.site-step-card h3,
.site-info-card h3,
.site-quote-card h3 {
    color: var(--site-ink);
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.7rem;
}

.site-step-card p,
.site-info-card p,
.site-quote-card p,
.site-quote-card blockquote {
    color: var(--site-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.site-info-card a {
    color: var(--site-teal);
    font-weight: 800;
}

/* Projects */

.site-project-card {
    border-radius: var(--site-radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.site-project-card__media {
    background: var(--site-mist);
    overflow: hidden;
}

.site-project-card__media img {
    aspect-ratio: 16 / 9;
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
    width: 100%;
}

.site-project-card:hover .site-project-card__media img {
    transform: scale(1.025);
}

.site-project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.35rem, 3vw, 1.75rem);
}

.site-project-card h3 {
    color: var(--site-ink);
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    letter-spacing: -0.04em;
    line-height: 1.07;
    margin: 0 0 0.9rem;
}

.site-project-card__summary,
.site-project-card__summary p {
    color: var(--site-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

.site-tag-list {
    margin-top: 1.25rem;
}

.site-tag-list span {
    background: var(--site-mist);
    box-shadow: none;
    font-size: 0.76rem;
}

/* Recommendations */

.site-section--sand .site-section-label {
    color: var(--site-ink-2);
}

.site-quote-card {
    background: rgba(255, 255, 255, 0.92);
}

.site-quote-card__title {
    color: var(--site-ink) !important;
    font-weight: 800;
    margin-bottom: 0.75rem !important;
}

.site-quote-card blockquote {
    border: 0;
    padding: 0;
}

/* Footer */

.site-footer {
    background: linear-gradient(rgba(7, 31, 53, 0.93), rgba(7, 31, 53, 0.93)), url('/assets/img/bg-code.jpg');
    background-position: center;
    background-size: cover;
    color: #fff;
    overflow: hidden;
    padding-block: clamp(4rem, 7vw, 6rem);
    position: relative;
}

.site-footer__grid,
.site-footer__compact-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 1;
}

.site-footer__contact {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--site-radius-xl);
    box-shadow: var(--site-shadow);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.site-footer h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin: 0 0 1rem;
}

.site-footer p,
.site-footer label {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__contact > p {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.site-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.site-form__field {
    display: grid;
    gap: 0.3rem;
}

.site-form input,
.site-form textarea {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.55rem;
    color: var(--site-ink);
    font: inherit;
    padding: 0.75rem 0.85rem;
    width: 100%;
}

.site-form textarea {
    min-height: 110px;
    resize: vertical;
}

.site-footer__meta {
    align-self: center;
}

.site-logo--footer {
    color: #fff;
}

.site-logo--footer:hover,
.site-logo--footer:focus {
    color: var(--site-sand-soft);
}

.site-footer__meta > p {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 520px;
}

.site-footer__links,
.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-top: 1.2rem;
}

.site-footer a {
    color: var(--site-sand-soft);
    font-weight: 800;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-footer__social a {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    min-height: 38px;
    padding: 0.55rem 0.8rem;
}

.site-footer__copyright {
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.site-footer--compact {
    padding-block: 2.2rem;
}

/* Subpages */

.site-subpage-top {
    background: linear-gradient(135deg, #f7faf9, #e8f1ef);
    border-bottom: 1px solid var(--site-line);
    overflow: hidden;
    padding-block: 2.2rem;
    position: relative;
}

.site-subpage-top__inner {
    position: relative;
    z-index: 1;
}

.site-subpage-top p {
    color: var(--site-muted);
    margin: 0.8rem 0 0;
}

/* Legacy page content polish */

body > section.space-top.space-bottom {
    background: var(--site-paper);
    color: var(--site-ink);
}

body > section.space-top.space-bottom h2,
body > section.space-top.space-bottom h3,
body > section.space-top.space-bottom h4 {
    color: var(--site-ink);
    letter-spacing: -0.025em;
}

body > section.space-top.space-bottom p,
body > section.space-top.space-bottom li,
body > section.space-top.space-bottom dd {
    color: var(--site-muted);
    font-size: 1rem;
    line-height: 1.7;
}

body > section.space-top.space-bottom a {
    color: var(--site-teal) !important;
}

/* Chat widget */

#ai-widget-button {
    background: var(--site-ink) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px !important;
    box-shadow: 0 18px 38px rgba(7, 31, 53, 0.2);
}

#ai-widget-box {
    border-radius: 1rem;
    box-shadow: var(--site-shadow);
}

/* Responsive */

@media (min-width: 680px) {
    .site-profile-card {
        grid-template-columns: 160px 1fr;
    }

    .site-framework-grid,
    .site-card-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .site-section-header--split {
        grid-template-columns: 0.9fr 1fr;
    }

    .site-section-header--split p {
        margin: 0;
    }

    .site-about-grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    }

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

    .site-footer__grid {
        grid-template-columns: minmax(320px, 0.75fr) 1fr;
    }

    .site-footer__compact-grid {
        align-items: center;
        grid-template-columns: 1fr auto;
    }
}

@media (min-width: 1100px) {
    .site-hero__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.9fr);
    }

    .site-framework-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .site-card-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 679px) {
    .site-hero {
        min-height: auto;
    }

    .site-hero h1 {
        font-size: clamp(2.75rem, 17vw, 4.2rem);
    }

    .site-section-header--center {
        text-align: left;
    }

    .site-section-header p:not(.site-section-label) {
        margin-inline: 0;
    }
}

/* ========================================================================== 
   Refinement pass: tighter hero, stronger case-study cards, softer proof areas
   ========================================================================== */

.site-hero {
    min-height: min(760px, calc(100vh - 1rem));
    padding-block: clamp(3rem, 6vw, 5.4rem);
}

.site-hero__texture {
    opacity: 0.065;
}

.site-hero .site-logo {
    margin-bottom: clamp(1.35rem, 3vw, 2.35rem);
}

.site-hero h1 {
    font-size: clamp(2.85rem, 7vw, 5.65rem);
    max-width: 760px;
}

.site-hero__lead {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    max-width: 650px;
}

.site-hero__summary {
    max-width: 650px;
}

.site-about-grid {
    align-items: start;
}

.site-copy-card {
    min-height: 0;
}

.site-project-grid--systems {
    align-items: stretch;
}

.site-project-card--system {
    overflow: visible;
    position: relative;
}

.site-project-card--system::before {
    background: linear-gradient(90deg, var(--site-teal), rgba(0, 71, 99, 0));
    border-radius: var(--site-radius-xl) var(--site-radius-xl) 0 0;
    content: "";
    display: block;
    height: 5px;
    inset: 0 0 auto;
    position: absolute;
}

.site-project-card__topline {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    padding: clamp(1.35rem, 3vw, 1.75rem) clamp(1.35rem, 3vw, 1.75rem) 0;
}

.site-project-card__mark {
    align-items: center;
    background: var(--site-ink);
    border-radius: 0.95rem;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 900;
    height: 2.65rem;
    justify-content: center;
    letter-spacing: 0.02em;
    width: 2.65rem;
}

.site-project-card__body--system {
    padding-top: 1rem;
}

.site-project-card--system h3 {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.site-project-card__summary p {
    margin: 0;
}

.site-project-card__value {
    background: var(--site-mist);
    border: 1px solid var(--site-line);
    border-radius: 1rem;
    color: var(--site-ink-2);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 1.15rem 0 0;
    padding: 0.9rem 1rem;
}

.site-supporting-work {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-xl);
    box-shadow: var(--site-shadow-soft);
    display: grid;
    gap: 1.5rem;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    padding: clamp(1.35rem, 3vw, 2rem);
}

.site-supporting-work h3 {
    color: var(--site-ink);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0 0 0.75rem;
}

.site-supporting-work p:not(.site-section-label) {
    color: var(--site-muted);
    line-height: 1.7;
    margin: 0;
}

.site-supporting-work__cards {
    display: grid;
    gap: 1rem;
}

.site-supporting-card {
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-lg);
    padding: 1.25rem;
}

.site-supporting-card h4 {
    color: var(--site-ink);
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 0.65rem;
}

.site-supporting-card p {
    color: var(--site-muted);
    line-height: 1.65;
    margin: 0;
}

.site-section--recommendations {
    background: linear-gradient(180deg, #fff, var(--site-mist-2));
}

.site-section--recommendations .site-quote-card {
    background: #fff;
}

.site-footer__contact {
    background: rgba(7, 31, 53, 0.58);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-form input,
.site-form textarea {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.36);
    border-radius: 0.75rem;
}

.site-form input:focus,
.site-form textarea:focus {
    border-color: var(--site-sand-soft);
    box-shadow: 0 0 0 3px rgba(230, 216, 190, 0.24);
    outline: none;
}

@media (min-width: 900px) {
    .site-supporting-work {
        grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    }
}

@media (min-width: 1100px) {
    .site-project-grid--systems {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========================================================================== 
   Two-texture refinement pass: separate light and dark compass assets
   plus mild readability reinforcement
   ========================================================================== */

.site-hero__texture {
    background-image: url('/assets/img/compass-background-light.webp');
    background-position: 62% 46%;
    background-size: 122%;
    mix-blend-mode: multiply;
    opacity: 0.12;
}

.site-subpage-top__texture,
.site-footer__texture {
    background-image: url('/assets/img/compass-background-dark.webp');
    background-position: center;
    background-size: cover;
}

.site-footer__texture {
    opacity: 0.14;
}

.site-dark-card {
    background: linear-gradient(rgba(7, 31, 53, 0.93), rgba(7, 31, 53, 0.93)), url('/assets/img/compass-background-dark.webp');
    background-position: center;
    background-size: cover;
}

.site-footer {
    background: linear-gradient(rgba(7, 31, 53, 0.94), rgba(7, 31, 53, 0.94)), url('/assets/img/bg-code.jpg');
    background-position: center;
    background-size: cover;
}

.site-copy-card p,
.site-project-card p,
.site-skill-card p,
.site-proof-card p,
.site-recommendation-card p,
.site-section-header p:not(.site-section-label),
.site-hero__summary,
.site-hero__bullet-list li {
    color: #4f6272;
    font-size: 1.05rem;
    line-height: 1.78;
}

.site-hero__lead {
    color: #264052;
}

.site-dark-card p,
.site-footer p,
.site-footer label,
.site-recommendation-card--dark p,
.site-project-card--dark p {
    color: rgba(255, 255, 255, 0.82);
}

.site-project-card p strong,
.site-copy-card p strong,
.site-skill-card p strong,
.site-proof-card p strong {
    color: var(--site-ink);
}

@media (min-width: 980px) {
    .site-hero__texture {
        background-position: 68% 48%;
        background-size: 118%;
        opacity: 0.125;
    }
}

/* ========================================================================== 
   Intentional motif pass: make the compass system feel authored, not incidental
   --------------------------------------------------------------------------
   This pass keeps the site restrained but gives the hero, initiative visuals,
   and footer a clearer shared line language: one route cue in the hero, clearer
   image-band linework in project cards, and a more resolved footer background.
   ========================================================================== */

.site-hero {
    position: relative;
}

.site-hero__texture {
    background-image: url('/assets/img/compass-background-light.webp');
    background-position: 64% 46%;
    background-size: 118%;
    mix-blend-mode: multiply;
    opacity: 0.145;
}

.site-hero::after {
    border-top: 3px dashed rgba(0, 71, 99, 0.16);
    border-right: 3px dashed rgba(0, 71, 99, 0.14);
    border-radius: 0 18rem 0 0;
    content: "";
    height: clamp(180px, 28vw, 330px);
    pointer-events: none;
    position: absolute;
    right: clamp(5rem, 11vw, 13rem);
    top: clamp(8rem, 20vw, 16rem);
    transform: rotate(7deg);
    width: clamp(260px, 35vw, 540px);
    z-index: 0;
}

.site-hero__grid {
    position: relative;
    z-index: 1;
}

.site-project-card__visual {
    background:
        radial-gradient(circle at 16% 18%, rgba(184, 155, 99, 0.22), transparent 30%),
        linear-gradient(135deg, #08283a, #004763 58%, #096774);
    position: relative;
}

.site-project-card__visual::before {
    border-top: 2px dashed rgba(234, 223, 199, 0.28);
    content: "";
    height: 42%;
    left: 8%;
    pointer-events: none;
    position: absolute;
    right: 8%;
    top: 44%;
    transform: rotate(-5deg);
    z-index: 1;
}

.site-project-card__visual--publicweb::after,
.site-project-card__visual--accessibility::after,
.site-project-card__visual--wayfinding::after,
.site-project-card__visual--intranet::after {
    background-image: url('/assets/img/compass-background-dark.webp');
    opacity: 0.18;
}

.site-project-card__visual > * {
    position: relative;
    z-index: 2;
}

.site-visual-map__route {
    border-color: rgba(234, 223, 199, 0.96);
    border-width: 4px;
    box-shadow: 0 0 18px rgba(234, 223, 199, 0.18);
}

.site-visual-map__pin {
    box-shadow: 0 0 0 3px rgba(255, 254, 249, 0.38), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.site-visual-diagram span,
.site-visual-flow span {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
}

.site-footer {
    position: relative;
}

.site-footer__texture {
    background-image: url('/assets/img/compass-background-dark.webp');
    background-position: 48% 52%;
    background-size: cover;
    opacity: 0.18;
}

.site-footer::after {
    border-top: 3px dashed rgba(234, 223, 199, 0.12);
    border-right: 3px dashed rgba(234, 223, 199, 0.10);
    border-radius: 0 18rem 0 0;
    content: "";
    height: clamp(150px, 20vw, 260px);
    pointer-events: none;
    position: absolute;
    right: clamp(8rem, 18vw, 20rem);
    top: clamp(4rem, 9vw, 7rem);
    transform: rotate(11deg);
    width: clamp(260px, 32vw, 520px);
    z-index: 0;
}

.site-footer__grid,
.site-footer__compact-grid {
    position: relative;
    z-index: 1;
}

.site-copy-card p,
.site-project-card p,
.site-skill-card p,
.site-proof-card p,
.site-recommendation-card p,
.site-section-header p:not(.site-section-label),
.site-hero__summary {
    color: #445a6b;
}

@media (max-width: 900px) {
    .site-hero__texture {
        background-position: center 44%;
        background-size: cover;
        opacity: 0.12;
    }

    .site-hero::after,
    .site-footer::after {
        display: none;
    }
}

/* ========================================================================== 
   Motif correction pass: remove forced route shapes and retune hero tone
   --------------------------------------------------------------------------
   Keeps the two-asset system, but removes the extra pseudo-element route cues
   that were creating odd shapes in the hero/footer. The hero now relies on a
   cleaner light-background compass asset with X/O and dashed-line detail.
   ========================================================================== */

.site-hero {
    background:
        radial-gradient(circle at 18% 16%, rgba(184, 155, 99, 0.11), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(0, 71, 99, 0.07), transparent 32%),
        linear-gradient(135deg, #fbfaf5 0%, #edf5f2 58%, #f8faf3 100%);
}

.site-hero::after,
.site-footer::after {
    content: none !important;
    display: none !important;
}

.site-hero__texture {
    background-image: url('/assets/img/compass-background-light-v2.webp');
    background-position: 72% 48%;
    background-size: cover;
    filter: contrast(1.05) saturate(0.88);
    mix-blend-mode: normal;
    opacity: 0.115;
}

.site-footer__texture {
    background-image: url('/assets/img/compass-background-dark.webp');
    background-position: 50% 52%;
    background-size: cover;
    opacity: 0.16;
}

.site-dark-card {
    background:
        linear-gradient(rgba(7, 31, 53, 0.935), rgba(7, 31, 53, 0.935)),
        url('/assets/img/compass-background-dark.webp');
    background-position: center;
    background-size: cover;
}

@media (min-width: 980px) {
    .site-hero__texture {
        background-position: 76% 47%;
        background-size: cover;
        opacity: 0.12;
    }
}

@media (max-width: 900px) {
    .site-hero__texture {
        background-position: 62% 42%;
        opacity: 0.095;
    }
}


/* ========================================================================== 
   Careful hero motif placement pass
   --------------------------------------------------------------------------
   Keeps the motif visible, but pulls the image activity away from the main
   headline so it feels intentional instead of busy. Uses a hero-specific crop
   with more X/O and route detail and fewer large ghost words behind the copy.
   ========================================================================== */

.site-hero__texture {
    background-image: url('/assets/img/compass-background-light-careful.webp');
    background-position: 70% 44%;
    background-size: cover;
    filter: contrast(1.03) saturate(0.82) brightness(1.03);
    mix-blend-mode: normal;
    opacity: 0.09;
}

@media (min-width: 980px) {
    .site-hero__texture {
        background-position: 74% 44%;
        background-size: cover;
        opacity: 0.095;
    }
}

@media (max-width: 900px) {
    .site-hero__texture {
        background-position: 64% 40%;
        opacity: 0.08;
    }
}

/* ========================================================================== 
   Careful hero proportion pass
   --------------------------------------------------------------------------
   Keeps the current hero motif and copy direction intact, but reduces the
   oversized desktop scale so the opening argument resolves better at 100% view.
   ========================================================================== */

.site-hero {
    min-height: min(705px, calc(100vh - 1rem));
    padding-block: clamp(2.6rem, 4.8vw, 4.65rem);
}

.site-hero__grid {
    gap: clamp(1.45rem, 3.6vw, 3rem);
}

.site-hero .site-logo {
    margin-bottom: clamp(1.05rem, 2.25vw, 1.8rem);
}

.site-hero h1 {
    font-size: clamp(2.65rem, 6.25vw, 5.08rem);
    letter-spacing: -0.06em;
    line-height: 0.965;
    max-width: 710px;
}

.site-hero__lead {
    font-size: clamp(1.05rem, 1.65vw, 1.32rem);
    line-height: 1.45;
    max-width: 600px;
}

.site-hero__summary {
    font-size: 1.02rem;
    line-height: 1.68;
    max-width: 610px;
}

.site-hero-person,
.site-hero-story-card {
    box-shadow: 0 12px 28px rgba(7, 31, 53, 0.075);
}

.site-hero-person__text p:not(.site-card-label),
.site-hero-story-card li {
    font-size: 1rem;
    line-height: 1.62;
}

@media (min-width: 980px) {
    .site-hero__grid--humanized {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.74fr);
    }
}

@media (min-width: 1400px) {
    .site-hero h1 {
        font-size: clamp(4.2rem, 5.55vw, 5.25rem);
    }
}

@media (max-width: 900px) {
    .site-hero {
        min-height: auto;
        padding-block: clamp(2.4rem, 7vw, 4rem);
    }
}

/* ========================================================================== 
   Final close-in pass: hero proportion, footer brand, subtle social icons
   --------------------------------------------------------------------------
   Keeps the current visual direction intact while making the first screen less
   oversized and cleaning up footer identity details.
   ========================================================================== */

.site-hero {
    min-height: min(660px, calc(100vh - 1rem));
    padding-block: clamp(2.35rem, 4.25vw, 4.15rem);
}

.site-hero__grid {
    gap: clamp(1.25rem, 3.1vw, 2.65rem);
}

.site-hero .site-logo {
    margin-bottom: clamp(0.9rem, 1.9vw, 1.45rem);
}

.site-hero h1 {
    font-size: clamp(2.45rem, 5.75vw, 4.72rem);
    letter-spacing: -0.058em;
    line-height: 0.97;
    max-width: 675px;
}

.site-hero__lead {
    font-size: clamp(1.02rem, 1.45vw, 1.22rem);
    line-height: 1.44;
    max-width: 570px;
}

.site-hero__summary {
    font-size: 1rem;
    line-height: 1.62;
    max-width: 585px;
}

.site-hero-person,
.site-hero-story-card {
    padding: clamp(1rem, 2vw, 1.28rem);
}

.site-hero-person__text p:not(.site-card-label),
.site-hero-story-card li {
    font-size: 0.98rem;
    line-height: 1.55;
}

.site-logo--footer {
    color: #fff;
    font-family: 'IBM Plex Sans', Verdana, sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 850;
    letter-spacing: -0.035em;
}

.site-footer__social {
    gap: 0.55rem;
}

.site-footer__social a.site-social-link,
.site-footer__links a.site-social-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    width: 38px;
}

.site-footer__social a.site-social-link:hover,
.site-footer__social a.site-social-link:focus,
.site-footer__links a.site-social-link:hover,
.site-footer__links a.site-social-link:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
}

.site-social-link svg {
    display: block;
    fill: currentColor;
    height: 17px;
    width: 17px;
}

.site-sr-only {
    clip: rect(0 0 0 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (min-width: 980px) {
    .site-hero__grid--humanized {
        grid-template-columns: minmax(0, 1fr) minmax(345px, 0.7fr);
    }
}

@media (min-width: 1400px) {
    .site-hero h1 {
        font-size: clamp(4rem, 5.1vw, 4.95rem);
    }
}

@media (max-width: 900px) {
    .site-hero {
        min-height: auto;
        padding-block: clamp(2.25rem, 6.5vw, 3.65rem);
    }

    .site-hero h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }
}

/* ========================================================================== 
   Final hero headline clamp adjustment
   --------------------------------------------------------------------------
   Matches the calmer desktop proportion tested in-browser: strong headline,
   less poster-like scale at 100% desktop zoom.
   ========================================================================== */

@media (min-width: 901px) {
    .site-hero h1 {
        font-size: clamp(2.85rem, 5.8vw, 4.5rem);
        max-width: 690px;
    }
}

@media (min-width: 1400px) {
    .site-hero h1 {
        font-size: clamp(3rem, 4.8vw, 4.5rem);
    }
}

/* ========================================================================== 
   Final pre-schema cleanup: calmer hero card proportion
   --------------------------------------------------------------------------
   Keeps the approved 4.5rem headline cap, while making the right-side
   "Practical Systems Work" panel a little wider and less column-like.
   ========================================================================== */

@media (min-width: 980px) {
    .site-hero__grid--humanized {
        grid-template-columns: minmax(0, 1fr) minmax(430px, 0.84fr);
    }

    .site-hero__aside--story {
        gap: 0.95rem;
    }

    .site-hero-person {
        grid-template-columns: minmax(135px, 172px) minmax(235px, 1fr);
        max-width: 535px;
    }

    .site-hero-person__text {
        padding: clamp(0.95rem, 1.55vw, 1.12rem);
    }

    .site-hero-person__text p:not(.site-card-label) {
        font-size: 0.96rem;
        line-height: 1.55;
    }
}

@media (min-width: 1400px) {
    .site-hero__grid--humanized {
        grid-template-columns: minmax(0, 1fr) minmax(455px, 0.82fr);
    }

    .site-hero-person {
        grid-template-columns: minmax(145px, 180px) minmax(250px, 1fr);
        max-width: 560px;
    }
}
