/* ==========================================================================
   I mean IT — Ghost theme stylesheet
   ==========================================================================
   Section index:
    1. Reset & base
    2. Variables
    3. Site header & navigation
    4. Hero
    5. Section primitives (shared)
    6. Services section
    7. Cases teaser section (homepage)
    8. About section
    9. Contact section
   10. Footer
   11. Pages (About, How I Work, Privacy, Services)
   12. Ghost content blocks (gh-content)
   13. Contact form (mailto-based)
   14. Cases listing page
   15. Lightbox
   16. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Reset & base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Serif', Georgia, serif;
    color: #1a2035;
    background: #f5f7fa;
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Global anchor offset for fixed-header scroll targets */
[id],
h1[id], h2[id], h3[id],
section[id] {
    scroll-margin-top: 96px;
}

/* ==========================================================================
   2. Variables
   ========================================================================== */

:root {
    --navy:       #1a3560;
    --navy-dark:  #0d1f45;
    --blue:       #4ab3e8;
    --blue-pale:  #c8e1ff;
    --off-white:  #f5f7fa;
    --text:       #1a2035;
    --text-muted: #5a6a80;
    --border:     #dde2ea;
    --mono:       'JetBrains Mono', 'Courier New', monospace;
}

/* ==========================================================================
   3. Site header & navigation
   ========================================================================== */

.site-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(200, 225, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.15);
}

.site-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
}

.site-head-logo img {
    height: 44px;
    width: auto;
}

.site-head-logo-text {
    font-family: 'IBM Plex Serif', serif;
    font-size: 22px;
    color: var(--navy);
    font-style: normal;
}

.site-head-logo-text em {
    color: var(--blue);
    font-style: normal;
}

.site-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.site-nav a {
    font-family: var(--mono);
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 0.04em;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.site-nav a:hover {
    opacity: 1;
    color: var(--blue);
}

.site-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.site-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.site-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-burger.is-open span:nth-child(2) { opacity: 0; }
.site-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   4. Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    background: var(--navy-dark);
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 179, 232, 0.65);
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-it {
    color: var(--blue);
}

@keyframes imeanit-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.hero-cursor {
    display: inline-block;
    width: 0.1em;
    height: 0.735em;
    background: var(--blue);
    vertical-align: baseline;
    position: relative;
    margin-left: 10px;
    border-radius: 1px;
    animation: imeanit-blink 1.1s step-end infinite;
}

.hero-sub {
    max-width: 640px;
    margin: 0 0 2.25rem 0;
    font-size: 1.2rem;
    line-height: 1.55;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 24px rgba(13, 31, 69, 0.4);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-cta {
    display: inline-block;
    font-family: var(--mono);
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    transition: background 0.2s, border-color 0.2s;
}

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

.hero-cta--secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.hero-cta--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

/* ==========================================================================
   5. Section primitives (shared)
   ========================================================================== */

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-label {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.section-sub {
    max-width: 640px;
    margin: -32px 0 40px 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.55;
}

.text-link {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--blue);
    letter-spacing: 0.04em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.text-link:hover {
    opacity: 0.7;
}

/* ==========================================================================
   6. Services section (homepage)
   ========================================================================== */

.services {
    background: #ffffff;
    padding: 100px 0 50px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--off-white);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 43, 75, 0.12);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.service-icon {
    font-size: 20px;
    color: var(--blue);
    flex-shrink: 0;
}

.service-card h3 {
    font-family: 'IBM Plex Serif', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

.service-card-link {
    margin-top: auto;
    padding-top: 16px;
    font-family: var(--mono);
    color: var(--blue);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.services-cta {
    margin-top: 48px;
    text-align: center;
}

/* ==========================================================================
   7. Cases teaser section (homepage)
   ==========================================================================
   Shares the white background with Services to visually group
   "what I do" and "proof I do it." About below uses off-white.
   ========================================================================== */

.cases-teaser {
    background: #ffffff;
    padding: 50px 0 100px 0;
    border-top: 1px solid rgba(27, 43, 75, 0.06);
}

.cases-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.cases-teaser-grid .case-card {
    background: var(--off-white);
}

.cases-teaser-cta {
    text-align: center;
}

/* ==========================================================================
   8. About section (homepage)
   ========================================================================== */

.about {
    background: var(--off-white);
    padding: 100px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-text .section-title {
    margin-bottom: 24px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 80px;
}

.stat-number {
    font-family: 'IBM Plex Serif', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ==========================================================================
   9. Contact section (homepage)
   ========================================================================== */

.contact {
    background: var(--navy-dark);
    padding: 100px 0;
}

.contact-inner {
    text-align: center;
}

.contact .section-label {
    justify-content: center;
}

.contact .section-title {
    color: #fff;
    margin-bottom: 16px;
}

.contact-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 48px;
    font-family: var(--mono);
}

.contact-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    font-family: var(--mono);
    font-size: 14px;
    padding: 14px 32px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}

.contact-btn--primary {
    background: var(--blue);
    color: var(--navy-dark);
    font-weight: 700;
}

.contact-btn--primary:hover {
    background: #6bc4f0;
}

.contact-btn--secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
}

.contact-btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-foot {
    background: var(--navy);
    border-top: 1px solid rgba(74, 179, 232, 0.2);
    padding: 64px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.site-foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.site-foot-col {
    display: flex;
    flex-direction: column;
}

.site-foot-col-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}

.site-foot-logo {
    font-family: 'IBM Plex Serif', serif;
    font-size: 24px;
    color: #f0ede6;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.site-foot-logo span {
    color: var(--blue);
}

.site-foot-tagline {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.site-foot-location {
    font-family: 'IBM Plex Serif', serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 320px;
}

.site-foot-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.availability-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: pulse-dot 2s infinite;
}

.availability-dot--busy {
    background: #fbbf24;
    animation: none;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.site-foot-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-foot-nav a {
    font-family: 'IBM Plex Serif', serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.site-foot-nav a:hover {
    color: var(--blue);
}

.site-foot-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-foot-contact a {
    font-family: 'IBM Plex Serif', serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.site-foot-contact a:hover {
    color: var(--blue);
}

.site-foot-legal {
    background: var(--navy-dark);
    border-top: 1px solid rgba(74, 179, 232, 0.1);
    padding: 20px 0;
}

.site-foot-legal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-foot-legal-business {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
}

.site-foot-copy {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
}

.site-foot-copy a {
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    transition: color 0.2s, border-color 0.2s;
}

.site-foot-copy a:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* ==========================================================================
   11. Pages (About, How I Work, Privacy, Services)
   ========================================================================== */

.page-main {
    padding-top: 72px;
    min-height: 80vh;
}

.page-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

.page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 0.5px solid var(--border);
}

.page-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-top: 12px;
}

.page-excerpt {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 16px;
}

.page-feature-image {
    max-width: 320px;
    margin: 0 auto 2rem auto;
}

.page-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(27, 43, 75, 0.15);
}

.page-content {
    font-size: 17px;
    line-height: 1.85;
    color: #2a3550;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
}

.page-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 32px 0 12px;
}

.page-content p {
    margin-bottom: 24px;
}

.page-content a {
    color: var(--blue);
    border-bottom: 1px solid currentColor;
}

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.page-content li {
    margin-bottom: 8px;
}

.about-photo {
    max-width: 320px;
    margin: 2rem auto !important;
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(27, 43, 75, 0.15);
}

/* ==========================================================================
   12. Ghost content blocks (gh-content)
   ========================================================================== */

.gh-content .kg-width-wide { margin: 0 -60px; }
.gh-content .kg-width-full { margin: 0 -40px; }

.gh-content figure {
    margin: 32px 0;
    text-align: center;
}

.gh-content figure img {
    border-radius: 8px;
    margin: 0 auto;
}

.gh-content figcaption {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.gh-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 6px;
}

.gh-content blockquote {
    border-left: 3px solid var(--blue);
    padding-left: 24px;
    color: var(--text-muted);
    font-style: italic;
    margin: 32px 0;
}

.gh-content code {
    font-family: var(--mono);
    font-size: 0.875em;
    background: #eef2f8;
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--navy);
}

.gh-content pre {
    background: var(--navy-dark);
    color: #e2e8f0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}

.gh-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 14px;
}

.post-feature-image {
    margin: 0 0 48px;
    border-radius: 12px;
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
}

/* ==========================================================================
   13. Contact form (mailto-based)
   ========================================================================== */

.contact-form {
    max-width: 560px;
    margin: 2rem 0;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 16px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(74, 179, 232, 0.15);
}

.form-row textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-row select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3560' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-submit {
    display: inline-block;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--navy-dark);
    background: var(--blue);
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.form-submit:hover {
    background: #6bc4f0;
}

.form-submit:active {
    transform: translateY(1px);
}

.form-note {
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.form-note a {
    color: var(--blue);
    border-bottom: 1px solid currentColor;
}

/* ==========================================================================
   14. Cases listing page (/cases)
   ========================================================================== */

.cases-intro {
    background: var(--off-white);
    padding: 100px 0 60px 0;
}

.cases-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.cases-sub {
    max-width: 640px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
}

.cases-list {
    background: #ffffff;
    padding: 60px 0 120px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.case-card {
    display: flex;
    flex-direction: column;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 43, 75, 0.1);
}

.case-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--navy-dark);
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-card-image img {
    transform: scale(1.03);
}

.case-card-content {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.case-card-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.case-card-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.case-card-link {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--blue);
    letter-spacing: 0.03em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    align-self: flex-start;
}

/* ==========================================================================
   15. Lightbox
   ========================================================================== */

.lightbox-enabled {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.lightbox-enabled:hover {
    opacity: 0.92;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 31, 69, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 40px;
    cursor: zoom-out;
}

.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-out;
}

.lightbox-overlay.is-open .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    font-family: var(--mono);
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    padding: 0;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
    transform: scale(1.05);
}

.lightbox-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(74, 179, 232, 0.5);
}

body.lightbox-locked {
    overflow: hidden;
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-stats {
        flex-direction: row;
        padding-top: 0;
        flex-wrap: wrap;
        gap: 24px;
    }
    .cases-teaser-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .site-head-inner {
        padding: 0 20px;
    }

    .site-head-brand {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .site-burger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 25, 60, 0.97);
        backdrop-filter: blur(12px);
        padding: 24px 20px 32px;
        z-index: 199;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav a {
        display: block;
        color: rgba(255, 255, 255, 0.8);
        padding: 16px 0;
        font-size: 16px;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    }

    .hero {
        padding-bottom: 60px;
    }
    .hero-content {
        padding: 0 20px;
    }
    .hero-title {
        font-size: clamp(28px, 7vw, 48px);
    }

    .section-inner {
        padding: 0 20px;
    }

    .services      { padding: 60px 0 30px 0; }
    .cases-teaser  { padding: 30px 0 60px 0; }
    .about         { padding: 60px 0; }
    .contact       { padding: 60px 0; }

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

    .site-foot {
        padding-top: 48px;
    }
    .site-foot-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px 40px;
        text-align: center;
    }
    .site-foot-col {
        align-items: center;
    }
    .site-foot-brand .site-foot-location {
        max-width: none;
    }
    .site-foot-availability {
        justify-content: center;
    }
    .site-foot-legal-inner {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    .site-foot-legal-business {
        text-align: center;
    }

    .page-inner {
        padding: 40px 20px 60px;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .lightbox-overlay {
        padding: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        align-items: stretch;
        justify-content: stretch;
        flex-direction: column;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: none;
        width: 100%;
        height: auto;
        border-radius: 0;
        transform: none !important;
        touch-action: pinch-zoom;
        margin: auto 0;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 26px;
        position: fixed;
        z-index: 10001;
        background: rgba(13, 31, 69, 0.85);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 600px) {
    .hero-sub {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-ctas .hero-cta {
        text-align: center;
    }
    .about-photo {
        max-width: 240px;
    }
    .cases-intro {
        padding: 72px 0 40px 0;
    }
    .cases-list {
        padding: 40px 0 80px 0;
    }
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .case-card-content {
        padding: 24px 24px 28px;
    }
    .case-card-title {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .site-burger { display: none !important; }
    .site-nav    { display: block !important; }
}