/*
Theme Name: B Portfolio
Author: B
Description: A clean, compact portfolio theme for implementation, delivery and AI-assisted SaaS work.
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: b-portfolio
*/
:root {
    --bg: #ffffff;
    --ink: #080808;
    --line: #dedede;
    --green: #3f6f5f;
    --green-dark: #31594c;
    --coral: #c8644b;
    --sage: #84977c;
    --gold: #d5a84b;
    --max: 1180px;
}

body.home {
    width: min(calc(100% - 32px), 1180px);
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(8, 8, 8, 0.06);
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    display: inline-block;
    padding: 4px 9px;
    border-bottom: 2px solid var(--green);
    border-radius: 4px;
    background: #e9eee7;
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus-visible {
    background: var(--green);
    color: #ffffff;
}


h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: "Fraunces", serif;
    font-weight: 600;
    line-height: 1.08;
}

p {
    margin: 0;
    color: var(--ink);
}

.wrap,
.contained-band {
    width: min(calc(100% - 32px), var(--max));
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
    box-sizing: border-box;
}

.eyebrow {
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
}

.header-inner {
    min-height: 62px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.logo,
.footer-logo {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 7px;
    color: var(--ink);
    font-family: "Fraunces", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 13px;
}

.site-nav a {
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    border-color: var(--green);
}

.ai-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* HERO */

.hero {
    padding-top: 12px;
    background: #ffffff;
}

.hero-content {
    max-width: none;
    padding: 64px clamp(24px, 5vw, 62px) 58px;
    background: #ffffff;
    text-align: center;
}

.hero h1 {
    max-width: 1040px;
    margin: 16px auto 0;
    font-size: clamp(46px, 6.6vw, 82px);
    letter-spacing: -0.035em;
}

.transform-word {
    display: inline-block;
    animation: transform-colours 4.8s infinite;
}

@keyframes transform-colours {

    0%,
    20% {
        color: #c8644b;
    }

    25%,
    45% {
        color: #84977c;
    }

    50%,
    70% {
        color: #d5a84b;
    }

    75%,
    95% {
        color: #3f6f5f;
    }

    100% {
        color: #c8644b;
    }
}

@keyframes notion-colours {

    0%,
    20% {
        color: var(--coral);
    }

    25%,
    45% {
        color: var(--sage);
    }

    50%,
    70% {
        color: var(--gold);
    }

    75%,
    95% {
        color: var(--green);
    }

    100% {
        color: var(--coral);
    }
}

.hero-copy {
    max-width: 850px;
    margin: 22px auto 0;
    padding: 0;
    background: transparent;
    color: #080808;
    font-size: 20px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* BUTTONS */

.btn-primary {
    display: table;
    margin-right: auto;
    margin-left: auto;
    min-width: 148px;
    padding: 14px 24px;
    border: 0;
    border-radius: 6px;
    background: #3f6f5f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #31594c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(49, 89, 76, 0.18);
}
.analyze-job-btn {
    background: rgb(255, 165, 0);
    border-color: rgb(255, 165, 0);
    color: #080808;
}

.analyze-job-btn:hover,
.analyze-job-btn:focus-visible {
    background: rgb(230, 149, 0);
    border-color: rgb(230, 149, 0);
    color: #080808;
}

/* ORGANIZATIONS */

.organizations {
    background: #ffffff;
}

.organizations-inner {
    padding: 22px 0 26px;
}

.organization-label {
    margin-bottom: 16px;
    color: var(--ink);
    font-weight: 700;
}

.organization-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    white-space: nowrap;
}

.organization-list span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

/* SECTIONS */

.section {
    padding: 58px 0;
    background: #ffffff;
}

.section-shell {
    border-bottom: 1px solid var(--line);
}

.section-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 30px;
}

.section-intro.compact {
    grid-template-columns: 1fr;
    align-items: start;
}

.section-intro.compact .btn-primary {
    margin-top: 4px;
    margin-right: 0;
    margin-left: 0;
}

.section-intro h2,
.section-intro > div > h3 {
    margin-top: 8px;
    font-size: clamp(34px, 4vw, 50px);
}

.section-intro>p {
    max-width: 540px;
    color: var(--ink);
    font-size: 17px;
}
.experience-heading {
    margin-bottom: 30px;
    text-align: center;
}

.experience-heading h2 {
    margin: 8px auto 10px;
    color: #080808;
    font-size: clamp(46px, 6vw, 72px);
}

.experience-heading>p {
    color: #080808;
    font-size: clamp(19px, 2.2vw, 27px);
}

.experience-capabilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.experience-capabilities h3 {
    min-height: 125px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedede;
    border-radius: 9px;
    background: #ffffff;
    color: #080808;
    font-size: clamp(23px, 2.6vw, 34px);
    text-align: center;
    animation: capability-movement 4.5s ease-in-out infinite;
}

.experience-capabilities h3:nth-child(2) {
    animation-delay: 0.35s;
}

.experience-capabilities h3:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes capability-movement {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}


/* EXPERIENCE */

.experience-section {
    background: #ffffff;
}

.experience-heading {
    margin-bottom: 30px;
    text-align: center;
}

.experience-heading h2 {
    margin: 8px auto 10px;
    font-size: clamp(46px, 6vw, 72px);
}

.experience-heading>p {
    color: var(--ink);
    font-size: clamp(19px, 2.2vw, 27px);
}

.experience-capabilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.experience-capabilities h3 {
    min-height: 125px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--ink);
    font-size: clamp(23px, 2.6vw, 34px);
    text-align: center;
    animation: capability-lift 4.5s ease-in-out infinite;
}

.experience-capabilities h3:nth-child(2) {
    animation-delay: 0.35s;
}

.experience-capabilities h3:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes capability-lift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* CARDS */

.card,
.service,
.solution-card,
.process-card,
.featured-case,
.contact-copy,
.contact-form,
.lesson {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.service,
.solution-card,
.process-card,
.experience-capabilities h3,
.lesson {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service:hover,
.solution-card:hover,
.process-card:hover,
.experience-capabilities h3:hover,
.lesson:hover {
    transform: translateY(-3px);
    border-color: #b9c8c2;
    box-shadow: 0 8px 18px rgba(8, 8, 8, 0.06);
}


/* SERVICES */

.services-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.service {
    min-height: 255px;
    padding: 22px;
    display: grid;
    grid-template-rows: auto 66px 1fr;
}

.service-number {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.process-card>span,
.lesson strong {
    display: block;
    margin-bottom: 34px;
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.service h3 {
    min-height: 66px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    font-size: 21px;
}

.process-card h3 {
    margin-bottom: 14px;
    font-size: 22px;
}

.service p {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
}

.process-card p {
    color: var(--ink);
    font-size: 16px;
}

/* SOLUTIONS */
.solutions-shell {
    padding: 0;
    background: #ffffff;
    border: 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 14px;
}

.solution-card {
    min-height: 255px;
    padding: 22px;
    display: grid;
    grid-template-rows: 66px 1fr;
}

.solution-card .eyebrow {
    min-height: 66px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: "Fraunces", serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.solution-card h3 {
    margin: 0;
    padding-top: 16px;
    display: block;
    color: var(--ink);
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}
/* Solutions section titles (FINANCIAL, HEALTHCARE, PROFESSIONAL) */
.solutions-shell h4 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.08;
}

.solutions-shell p {
    margin: 12px 0 0 0;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

/* CASE STUDY */

.featured-case {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    overflow: hidden;
}

.case-quote-section {
    padding: 76px 0 !important;
    background: #ffffff;
}

.case-article .case-quote-section blockquote {
    max-width: none;
    margin: 0;
    padding: 52px clamp(28px, 6vw, 70px);
    border-radius: 14px;
    background: var(--green-dark);
    color: #ffffff;
    font-family: "Fraunces", serif;
    font-size: clamp(24px, 3.2vw, 34px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 700px) {
    .case-quote-section {
        padding: 52px 0 !important;
    }

    .case-article .case-quote-section blockquote {
        padding: 38px 24px;
    }
}
.case-summary {
    padding: clamp(32px, 5vw, 60px);
    background: #ffffff;
}

.case-summary h2 {
    max-width: 670px;
    margin: 12px 0 18px;
    font-size: clamp(36px, 5vw, 56px);
}

.case-summary>p:not(.eyebrow) {
    max-width: 620px;
    margin-bottom: 26px;
    color: var(--ink);
}

.case-facts {
    margin: 0;
    padding: 32px;
    background: #ffffff;
    color: var(--ink);
    border-left: 1px solid var(--line);
}

.case-facts div {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.case-facts div:last-child {
    border-bottom: 0;
}

.case-facts dt {
    margin-bottom: 4px;
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-facts dd {
    margin: 0;
    color: var(--ink);
    font-family: "Fraunces", serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
}

/* PROCESS */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.process-card {
    min-height: 245px;
    padding: 24px;
}

/* FINAL CTA */

.final-cta {
    padding: 52px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    text-align: center;
}

.final-cta h2 {
    max-width: 780px;
    margin: 10px auto 24px;
    font-size: clamp(32px, 4vw, 47px);
}

/* CONTACT */
/* CONTACT */

.page-hero {
    padding: 58px clamp(24px, 6vw, 72px);
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
    margin-bottom: 12px;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
}

.contact-layout {
    display: block;
}

.contact-form {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(8, 8, 8, 0.06);
}

.contact-form form {
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input {
    min-height: 50px;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(63, 111, 95, 0.14);
}

.form-row {
    margin-bottom: 22px;
}

.contact-form .btn-primary {
    min-width: 180px;
    margin: 4px 0 0;
    padding: 14px 24px;
    justify-content: center;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.notice,
.notice.error {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
}

.notice {
    border-color: var(--green);
    background: #e9eee7;
}

.notice.error {
    border-color: var(--coral);
    background: #fff7f4;
}

@media (max-width: 700px) {
    .page-hero {
        padding: 42px 22px;
    }

    .contact-form {
        padding: 26px 20px;
        border-radius: 9px;
    }

    .contact-form .btn-primary {
        width: 100%;
    }
}
.case-quote-section > h3 {
    margin: 0 0 28px;
    font-size: clamp(32px, 4.2vw, 48px);
    text-align: center;
}

/* CASE-STUDY PAGE */
.case-page-hero {
    display: block;
    padding-top: 82px;
    padding-bottom: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.case-hero-copy {
    max-width: 880px;
    margin: 0 auto;
}

.case-page-hero .eyebrow {
    margin: 0 0 20px;
    color: var(--coral);
}

.case-title {
    max-width: 850px;
    margin: 0 auto;
    color: var(--ink);
    font-family: "Fraunces", serif;
    font-size: clamp(42px, 5.6vw, 66px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-align: center;
}

.case-title em {
    color: var(--green-dark);
    font-weight: 500;
}

.case-page-hero .hero-copy {
    max-width: 650px;
    margin: 26px auto 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.65;
    text-align: center;
}

.case-stat-row {
    max-width: 600px;
    margin: 54px auto 0;
    padding: 36px 0 0;
    display: flex;
    justify-content: center;
    gap: clamp(60px, 10vw, 120px);
    border-top: 1px solid var(--line);
}

.case-stat {
    min-width: 130px;
    text-align: center;
}

.case-stat dt {
    color: var(--green-dark);
    font-family: "Fraunces", serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
}

.case-stat dd {
    margin: 7px 0 0;
    color: var(--ink);
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: lowercase;
}

@media (max-width: 700px) {
    .case-page-hero {
        padding-top: 56px;
        padding-bottom: 46px;
    }

    .case-title {
        font-size: clamp(38px, 11vw, 52px);
    }

    .case-title br {
        display: none;
    }

    .case-page-hero .hero-copy {
        font-size: 16px;
    }

    .case-stat-row {
        margin-top: 42px;
        gap: 34px;
    }

    .case-stat {
        min-width: 110px;
    }

    .case-stat dt {
        font-size: 31px;
    }
}

.case-article {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    background: #ffffff;
    font-family: "IBM Plex Sans", Arial, sans-serif;
}

.case-article section {
    padding: 50px 0;
    border-bottom: 1px solid var(--line);
}

.case-article h3 {
    margin: 8px 0 18px;
    font-family: "Fraunces", serif;
    font-size: clamp(26px, 3.1vw, 38px);
    font-weight: 600;
    line-height: 1.14;
    color: #080808;
}

.case-article h4 {
    margin: 0 0 12px;
    font-family: "Fraunces", serif;
    font-size: 23px;
}

.case-article p {
    margin: 0 0 16px;
    color: #080808;
    font-size: 17px;
    line-height: 1.6;
}

.case-article ul {
    margin: 16px 0;
    padding-left: 22px;
}

.case-article li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.55;
}

.case-article blockquote {
    margin: 18px 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #080808;
    font-family: "Fraunces", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
}

.case-overview {
    max-width: 760px;
}

.case-band {
    margin: 0;
    padding: 76px 0 !important;
    border-radius: 0;
}

.solution-band {
    background: #ffffff;
}

.case-opportunity {
    padding: 76px 0 !important;
    background: #ffffff;
}

.case-section-kicker {
    margin-bottom: 14px !important;
    color: var(--green-dark) !important;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-opportunity > h3 {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: clamp(34px, 4.2vw, 48px);
}

.case-opportunity-lede {
    max-width: 650px;
    margin-bottom: 46px !important;
}

.opportunity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
    gap: clamp(38px, 6vw, 70px);
    align-items: start;
}

.opportunity-clause {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.opportunity-clause:first-child {
    border-top: 0;
}

.opportunity-clause > span {
    padding: 3px 8px;
    border-radius: 5px;
    background: #e4ebee;
    color: #3f5c6c;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.opportunity-clause p {
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.55;
}

.prohibited-clause > span {
    background: #f3e3de;
    color: var(--coral);
}

.prohibited-clause strong {
    color: var(--coral);
}

.opportunity-stakes {
    display: grid;
    gap: 14px;
}

.opportunity-stake {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
}

.opportunity-stake > strong {
    display: block;
    color: var(--coral);
    font-family: "Fraunces", serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.opportunity-stake-green > strong {
    color: var(--green-dark);
}

.opportunity-stake p {
    margin: 9px 0 0 !important;
    font-size: 13px;
    line-height: 1.45;
}

.opportunity-quiz {
    display: block;
    padding: 11px 16px;
    text-align: center;
}

.opportunity-summary {
    max-width: 760px;
    margin: 46px 0 0 !important;
}

@media (max-width: 800px) {
    .opportunity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .case-opportunity {
        padding: 52px 0 !important;
    }

    .case-opportunity-lede {
        margin-bottom: 32px !important;
    }

    .opportunity-summary {
        margin-top: 34px !important;
    }
}
.solution-audiences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 38px;
}

.solution-audiences > div {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.solution-audiences > div:first-child {
    border-top: 5px solid var(--green);
}

.solution-audiences > div:last-child {
    border-top: 5px solid var(--coral);
}

.solution-audiences h4 {
    margin-bottom: 18px;
    font-size: 26px;
}

.solution-audiences ul {
    margin-bottom: 22px;
}
.case-article .tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.case-article .tech-list li {
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.case-role {
    padding: 76px 0 !important;
    background: #ffffff;
}

.case-role > h3 {
    margin-bottom: 18px;
    font-size: clamp(34px, 4.2vw, 48px);
}

.case-role-lede {
    max-width: 650px;
    margin-bottom: 44px !important;
}

.case-role-panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.role-panel-label {
    margin-bottom: 18px !important;
    color: var(--green-dark) !important;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-article .role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-article .role-list li {
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f5f1e8;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}



@media (max-width: 700px) {
    .case-role {
        padding: 52px 0 !important;
    }

    .case-role-lede {
        margin-bottom: 30px !important;
    }

    .case-role-panel {
        padding: 24px 20px;
    }
}



.case-callout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 7vw, 80px);
    margin: 0;
    padding: 76px 0;
    border-bottom: 1px solid var(--line);
}

.case-callout-grid .case-callout {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: #ffffff;
}

.case-callout h3 {
    margin-bottom: 20px;
    font-size: 30px;
}

.case-callout ul {
    margin-bottom: 0;
}

.case-callout p:last-child {
    margin-bottom: 0;
}

.repo-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 0 0 36px;
    padding: 30px 34px !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(8, 8, 8, 0.05);
}

.repo-mark {
    display: none;
}

.repo-panel h3 {
    margin: 6px 0 8px;
    font-size: 29px;
}

.repo-panel p:last-child {
    margin-bottom: 0;
}

.repo-link {
    white-space: nowrap;
}

.case-lessons-section {
    padding: 76px 0 !important;
    background: #ffffff;
}

.case-lessons-section > h3 {
    margin-bottom: 42px;
    font-size: clamp(34px, 4.2vw, 48px);
}

.case-article .lessons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(44px, 7vw, 80px);
    row-gap: 52px;
    margin-top: 0;
}

.case-article .lesson {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

.case-article .lesson h3 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.2;
}

.case-article .lesson p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .case-lessons-section {
        padding: 52px 0 !important;
    }

    .case-lessons-section > h3 {
        margin-bottom: 32px;
    }

    .case-article .lessons {
        row-gap: 38px;
    }
} 

.case-next-steps {
    display: block;
    margin-bottom: 28px;
    padding: 70px 30px !important;
    border: 0 !important;
    border-radius: 0;
    background: #ffffff;
    text-align: center;
}

.case-next-steps h3 {
    margin-bottom: 14px;
    color: var(--green-dark);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.case-next-steps p:last-child {
    max-width: 760px;
    margin: 0 auto;
    font-family: "Fraunces", serif;
    font-size: clamp(27px, 3.4vw, 38px);
    font-weight: 600;
    line-height: 1.25;
}

.case-next-steps .btn-primary {
    margin: 26px auto 0;
}

/* ADD BLACK-TEXT CODE HERE */

body,
h1,
h2,
h3,
p,
li,
dt,
dd,
.eyebrow,
.ai-label,
.organization-list span,
.service-number,
.process-card>span,
.lesson strong,
.case-facts,
.case-facts dt,
.case-facts dd,
.footer-inner p {
    color: #080808;
}

.highlight-link {
    display: inline-block;
    padding: 4px 9px;
    border-bottom: 2px solid var(--green);
    border-radius: 4px;
    background: #e9eee7;
    color: var(--green-dark);
    font-weight: 700;
    text-decoration: none;
}

.highlight-link:hover,
.highlight-link:focus-visible {
    background: var(--green);
    color: #ffffff;
}


/* FOOTER */

footer {
    padding: 18px 0 24px;
    background: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.footer-logo {
    width: 30px;
    height: 30px;
    font-size: 18px;
}

.footer-inner p {
    color: var(--ink);
    font-size: 13px;
}

/* TABLET */

@media (max-width: 1000px) {
    .organization-list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .section-intro h2,
.section-intro > div > h3 {
    margin-top: 8px;
    font-size: clamp(34px, 4vw, 50px);
    white-space: nowrap;
}

    .services-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .solution-card {
        min-height: 190px;
    }

    .featured-case,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .case-facts {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .lessons {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */

@media (max-width: 700px) {

    .wrap,
    .contained-band {
        width: min(calc(100% - 28px), var(--max));
    }

    .site-header {
        position: static;
    }

    .header-inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
        padding: 12px 0;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        gap: 18px;
        padding-top: 10px;
        border-top: 1px solid var(--line);
        overflow-x: auto;
    }

    .ai-label {
        grid-column: 2;
        grid-row: 1;
    }

    .hero {
        padding-top: 8px;
    }

    .hero-content {
        padding: 45px 22px;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .hero-copy {
        font-size: 18px;
    }

    .organization-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        white-space: normal;
    }

    .section,
    .solutions-shell {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .section-intro,
    .section-intro.compact {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .experience-capabilities,
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

        .service,
        .process-card {
            min-height: auto;
        }
    
        .service {
            grid-template-rows: auto auto 1fr;
        }
    
        .service h3 {
            min-height: auto;
            padding-bottom: 14px;
        }
    
        .solution-card {
            min-height: auto;
            grid-template-rows: auto 1fr;
        }

    .case-summary,
    .case-facts {
        padding: 28px 22px;
    }

    .footer-inner {
        padding-bottom: 4px;
    }
    
    body.home {
        width: calc(100% - 16px);
        margin: 8px auto;
        border-radius: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .transform-word,
    .experience-capabilities h3 {
        animation: none;
    }

    .btn-primary,
    .service,
    .solution-card,
    .process-card,
    .lesson {
        transition: none;
    }
}

@media (max-width: 700px) {
    .experience-capabilities {
        grid-template-columns: 1fr;
    }

    .experience-capabilities h3 {
        min-height: auto;
    }
}
/* Compact organizations and experience section */

.organizations-inner {
    padding: 22px 0 26px;
}

.organization-label {
    margin-bottom: 14px;
    text-align: center;
}

.organization-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    white-space: normal;
}

.organization-list span {
    min-height: 54px;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.organization-list span:nth-child(5n) {
    border-right: 0;
}

.organization-list span:nth-child(-n + 5) {
    border-bottom: 1px solid var(--line);
}

.experience-section {
    padding-top: 42px;
    padding-bottom: 48px;
}

.experience-heading {
    margin-bottom: 24px;
}

.experience-heading h2 {
    margin: 7px auto 8px;
    font-size: clamp(38px, 4.5vw, 52px);
}

.experience-heading>p {
    font-size: clamp(17px, 1.8vw, 21px);
}

.experience-capabilities {
    gap: 12px;
}

.experience-capabilities h3 {
    min-height: 92px;
    padding: 14px 18px;
    font-size: clamp(20px, 2vw, 26px);
}

/* Tablet */

@media (max-width: 900px) {
    .organization-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .organization-list span,
    .organization-list span:nth-child(5n),
    .organization-list span:nth-child(-n + 5) {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .organization-list span:nth-child(3n) {
        border-right: 0;
    }

    .organization-list span:nth-last-child(-n + 1) {
        border-bottom: 0;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .organization-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .organization-list span,
    .organization-list span:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .organization-list span:nth-child(2n) {
        border-right: 0;
    }

    .organization-list span:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .experience-section {
        padding-top: 36px;
        padding-bottom: 40px;
    }
}

/* Case-study-only responsive refinements. */
@media (max-width: 900px) {
    .solution-audiences,
    .case-callout-grid {
        grid-template-columns: 1fr;
    }

    .case-article .lessons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .case-article {
        padding: 0 18px;
    }

    .case-band {
        padding: 52px 0 !important;
    }

    .solution-audiences > div {
        padding: 22px;
    }

    .case-callout-grid {
        padding: 52px 0;
    }

    .case-article h3 {
        font-size: clamp(20px, 6vw, 28px);
    }

    .repo-panel {
        grid-template-columns: 1fr;
        padding: 24px !important;
    }

    .repo-link {
        grid-column: auto;
    }

    .case-next-steps {
        padding: 52px 20px !important;
    }

    .case-next-steps .btn-primary {
        margin: 24px auto 0;
    }
}

/* FINAL MARKED LAYOUT REFINEMENTS — AUGUST 19 */

/* Homepage: clear, contained separators between the marked sections. */
body.home .section-shell {
    border-bottom: 0;
}

body.home #solutions,
body.home #case-studies,
body.home #about {
    position: relative;
}

body.home #solutions::before,
body.home #case-studies::before,
body.home #about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(calc(100% - 48px), var(--max));
    height: 1px;
    background: var(--line);
    transform: translateX(-50%);
}

body.home #solutions,
body.home #case-studies,
body.home #about {
    padding-top: 50px;
    padding-bottom: 50px;
}

body.home #solutions .section-intro,
body.home #about .section-intro {
    margin-bottom: 24px;
}

/* Case study: title above a contained green quote panel. */
.case-article .case-quote-section {
    padding: 54px 0 46px !important;
    background: #ffffff;
}

.case-quote-section > h3 {
    max-width: 760px;
    margin: 0 auto 22px;
    font-size: clamp(34px, 4.2vw, 48px);
    line-height: 1.12;
    text-align: center;
}

.case-article .case-quote-section blockquote {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 34px clamp(24px, 5vw, 54px);
    border-radius: 12px;
    background: var(--green-dark);
    color: #ffffff;
    font-size: clamp(21px, 2.7vw, 30px);
    line-height: 1.4;
    text-align: center;
}

/* Case study: remove excess vertical gaps in the marked lower section. */
.case-callout-grid {
    padding-top: 48px;
    padding-bottom: 48px;
}

.repo-panel {
    margin-top: 0;
    margin-bottom: 0;
}

.case-lessons-section {
    padding-top: 48px !important;
    padding-bottom: 58px !important;
}

@media (max-width: 700px) {
    body.home #solutions,
    body.home #case-studies,
    body.home #about {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    body.home #solutions::before,
    body.home #case-studies::before,
    body.home #about::before {
        width: calc(100% - 28px);
    }

    .case-article .case-quote-section {
        padding: 42px 0 38px !important;
    }

    .case-quote-section > h3 {
        margin-bottom: 18px;
    }

    .case-article .case-quote-section blockquote {
        padding: 30px 22px;
    }

    .case-callout-grid {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .case-lessons-section {
        padding-top: 42px !important;
        padding-bottom: 48px !important;
    }
}
