body {
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 300;
    margin: 0;
    padding: 0;
    line-height: 1.8;
}
h1 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 48px;
}
summary {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 24px;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 80px;
    background-color: rgba(0, 0, 0, 0.65);
}
p {
    margin-bottom: 1.5em;
}

details {
    margin-bottom: 2em;
}
.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}
.headshot {
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    margin-left: 30px;
    margin-top: -50px;
}
.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.banner-logo {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.banner-links {
    display: flex;
    gap: 32px;
}

.banner-links a {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.banner-contact {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
}
details {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    margin-bottom: 2em;
}
.banner-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

.hero {
    min-height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 80px 80px;
}

.hero-headline {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(56px, 9vw, 120px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    text-transform: uppercase;
}

.hero-sub {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
}

.hero-cta {
    display: inline-block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 24px;
    width: fit-content;
    transition: background-color 0.2s, border-color 0.2s;
}

.hero-cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}
/* ── Sections ── */
.section {
    padding: 50px 0;
    scroll-margin-top: 80px;
}

.section-dark {
    background-color: transparent;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 80px;
    background-color: rgba(0, 0, 0, 0.65);
}

.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 20px;
}

.section-intro {
    font-size: 18px;
    font-weight: 300;
    max-width: 640px;
    margin: 0 0 48px;
    line-height: 1.7;
}

.section-cta {
    display: inline-block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 24px;
    margin-top: 48px;
    transition: background-color 0.2s, border-color 0.2s;
}

.section-cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ── Services grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
}

.service-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 16px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

/* ── Tags ── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Stub cards ── */
.stub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.stub-card {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
}

.stub-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 12px;
}

.stub-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 16px;
}

.stub-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}
a.banner-logo {
    text-decoration: none;
    color: #ffffff;
}
.stub-card h3 a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.stub-card h3 a:hover {
    border-bottom-color: #ffffff;
}
/* ── Case Study Pages ── */
.case-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-bottom: 20px;
}
.case-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.case-meta {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 48px;
    font-weight: 300;
}
.case-meta span {
    margin-right: 32px;
}
.case-section {
    margin-bottom: 56px;
}
.case-section-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65)
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.case-section p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px;
}
.case-section p:last-child {
    margin-bottom: 0;
}
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}
.framework-step {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}
.framework-step .step-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    margin-bottom: 10px;
}
.framework-step h3 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 10px;
}
.framework-step p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}
.findings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.findings-list li {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 0 0 20px;
    position: relative;
}
.findings-list li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 20px;
    line-height: 1.5;
}
.findings-list li:last-child {
    border-bottom: none;
}
pre {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    overflow-x: auto;
    margin: 0 0 8px;
}
pre:last-child {
    margin-bottom: 0;
}
code {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}
.sql-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 10px;
}
.cta-row {
    display: flex;
    gap: 16px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    align-items: center;
    flex-wrap: wrap;
}
.back-link {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.back-link:hover {
    color: #ffffff;
}
.divider {
    color: rgba(255, 255, 255, 0.2);
}
.case-section p strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
}
.case-section p strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
    display: block;
    margin-top: 32px;
    margin-bottom: 12px;
}

