@page { size: A4 portrait; margin: 0; }

:root {
    --brand: #02bdd5;
    --brand-deep: #02bdd5;
    --ink: #02a8be;
    --paper: #ffffff;
    --wash: #eefafc;
    --line: #c5eef4;
    --mute: #4eb8c8;
}

html, body { margin: 0; background: #d5eef2; }
html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
body {
    font-family: "Segoe UI", Calibri, Arial, sans-serif;
    color: var(--ink);
    font-size: 12.5px;
    line-height: 1.4;
}
body.exporting .toolbar { visibility: hidden; }
body.exporting .book { margin: 0 auto; }
body.exporting .page {
    box-shadow: none;
    margin: 0 auto;
    width: 210mm;
    height: 297mm;
    max-height: 297mm;
    overflow: hidden;
}

.toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--brand);
}
.toolbar button, .toolbar a {
    border: 0;
    border-radius: 6px;
    padding: 8px 16px;
    background: #fff;
    color: var(--brand-deep);
    text-decoration: none;
    font: 700 13px inherit;
    cursor: pointer;
}
.toolbar a { background: var(--brand-deep); color: #fff; }
.toolbar button:disabled { opacity: 0.65; cursor: wait; }
.export-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 140, 160, 0.55);
    color: #fff;
    font: 700 16px "Segoe UI", sans-serif;
}
.export-overlay[hidden] { display: none; }

.book { width: 210mm; margin: 16px auto 40px; }

.page {
    width: 210mm;
    height: 297mm;
    background: var(--paper);
    padding: 12mm 13mm 22mm;
    margin: 0 auto 14px;
    box-shadow: 0 10px 28px rgba(2, 189, 213, 0.18);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    page-break-after: always;
    break-after: page;
}
.page > * { flex-shrink: 0; }
.page:last-child { page-break-after: auto; break-after: auto; }
.page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, #02bdd5, #7ae6f2, #02bdd5);
}

.rule {
    height: 3px;
    background: linear-gradient(90deg, var(--brand), transparent);
    margin: 8px 0 8px;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-size: 10px;
    color: var(--brand);
    margin: 0 0 4px;
    font-weight: 700;
}
.page h2 {
    font-size: 27px;
    margin: 0 0 8px;
    color: var(--brand-deep);
    letter-spacing: -0.3px;
    line-height: 1.1;
}
.page h3 {
    font-size: 13px;
    margin: 0 0 4px;
    color: var(--brand-deep);
}
.lede { font-size: 13.5px; line-height: 1.45; margin: 0 0 10px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.tile {
    background: var(--wash);
    border-left: 3px solid var(--brand);
    padding: 11px 12px;
    border-radius: 0 8px 8px 0;
}
.stat {
    background: var(--brand);
    color: #fff;
    padding: 16px 8px;
    text-align: center;
    border-radius: 8px;
}
.stat strong {
    display: block;
    font-size: 26px;
    color: #fff;
    line-height: 1;
}
.stat span { font-size: 11px; letter-spacing: 0.5px; opacity: 0.92; }

.logo-wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    flex: 1;
    align-content: start;
}
.logo-wall.dense {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.logo-wall figure {
    margin: 0;
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 4px 4px;
    text-align: center;
    min-height: 66px;
}
.logo-wall.dense figure {
    min-height: 58px;
    padding: 4px 3px 3px;
}
.logo-wall img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}
.logo-wall.dense img { max-height: 32px; }
.logo-wall figcaption {
    font-size: 7.4px;
    line-height: 1.15;
    margin-top: 3px;
    color: var(--mute);
}
.logo-wall.dense figcaption { font-size: 6.6px; }
.page-clients { padding-bottom: 16mm; }
.page-clients h2 { margin-bottom: 4px; }
.page-clients .lede { font-size: 12.5px; margin-bottom: 6px; }
.page-clients .logo-wall.dense {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    flex: 1 1 auto;
    align-content: stretch;
    align-items: stretch;
    gap: 6px;
    min-height: 0;
}
.page-clients .logo-wall.dense figure {
    box-sizing: border-box;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 5px 5px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(2, 189, 213, 0.08);
}
.page-clients .logo-wall.dense img {
    flex: 0 0 auto;
    width: auto;
    max-width: 96%;
    height: 15mm;
    max-height: 15mm;
    min-height: 15mm;
    object-fit: contain;
}
.page-clients .logo-wall.dense figcaption {
    flex: 0 0 auto;
    font-size: 7.2px;
    margin-top: 3px;
}

.footer-line {
    position: absolute;
    left: 13mm;
    right: 13mm;
    bottom: 7mm;
    font-size: 10px;
    color: var(--mute);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 5px;
}

.cover { padding: 0 0 15mm; background: var(--paper); color: var(--ink); }
.cover::before { display: none; }
.cover-hero {
    background:
        radial-gradient(circle at 90% 8%, rgba(255,255,255,0.22), transparent 32%),
        linear-gradient(165deg, #028ca0 0%, #02bdd5 52%, #7ae6f2 100%);
    color: #fff;
    padding: 8mm 13mm 7mm;
    margin-bottom: 6px;
}
.cover-hero .kicker { color: rgba(255,255,255,0.88); }
.cover-hero h1 {
    font-size: 30px;
    line-height: 0.98;
    margin: 4px 0 4px;
    max-width: 94%;
    color: #fff;
}
.cover-hero .years { font-size: 17px; margin: 0 0 5px; color: #fff; }
.cover-hero .founded-highlight {
    display: inline-block;
    margin: 0 0 6px;
    padding: 5px 12px;
    background: #028ca0;
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.15;
    border-radius: 6px;
}
.cover-hero p { margin: 0 0 6px; }
.cover .logo-chip {
    width: 118px;
    background: #fff;
    padding: 6px 8px;
    border-radius: 10px;
}
.cover-hero .facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.cover-hero .facts div {
    border-top: 1px solid rgba(255,255,255,0.45);
    padding-top: 5px;
    font-size: 11px;
}
.cover-hero .facts strong { display: block; font-size: 18px; color: #fff; }
.cover-body { padding: 0 13mm; flex: 1 1 auto; }
.cover-body h2 { font-size: 22px; margin-bottom: 6px; }
.cover-body .lede { margin-bottom: 6px; font-size: 12.5px; }
.cred-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0 0 8px;
}
.cred-row span {
    background: var(--brand);
    color: #fff;
    border-radius: 6px;
    padding: 7px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 11.5px;
}
.award-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}
.award-grid .tile { padding: 8px 10px; }
.award-grid .tile p { margin: 0; font-size: 11.5px; }
.award-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 8px;
}
.award-photos figure {
    margin: 0;
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.award-photos img {
    display: block;
    width: 100%;
    height: 42mm;
    object-fit: cover;
    object-position: center;
    background: #fff;
}
.award-photos .award-doc img {
    object-fit: contain;
    background: #fff;
}
.award-photos .award-governor img {
    object-position: 28% 42%;
}
.award-photos figcaption {
    padding: 5px 7px 6px;
    font-size: 10.5px;
    line-height: 1.25;
    color: var(--brand-deep);
    font-weight: 700;
}
.fd-row {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 10px;
    align-items: center;
}
.fd-row h3 { font-size: 15px; margin-bottom: 3px; }
.fd-row p { margin: 0; font-size: 12px; }

.mosaic-band {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-top: 12px;
}
.mosaic-band img {
    width: 100%;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 3px;
    box-sizing: border-box;
}
.mosaic-band.fill {
    flex: 1 1 auto;
    align-content: start;
    align-items: start;
}
.mosaic-band.fill img { height: 38px; }
.cover .mosaic-band img {
    background: #fff;
    height: 40px;
    border-color: rgba(255,255,255,0.55);
}

.band {
    background: var(--brand);
    color: #fff;
    padding: 12px 14px;
    margin: 10px 0 0;
    border-radius: 8px;
}
.band h3 { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
    border: 1px solid var(--line);
    padding: 5px 8px;
    font-size: 11px;
    background: var(--wash);
    color: var(--brand-deep);
    border-radius: 999px;
}
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.focus-grid .tile { padding: 11px 12px; }
.focus-grid .tile p { margin: 0; font-size: 11.5px; }
.page-services { padding-bottom: 18mm; }
.page-services h2 { font-size: 26px; margin-bottom: 6px; }
.page-services .lede { font-size: 13.5px; margin-bottom: 10px; }
.page-services .rule { margin: 4px 0 8px; }
.page-services .service-top {
    gap: 10px;
    margin-bottom: 12px;
}
.page-services .service-top .tile {
    padding: 14px 14px;
    min-height: 28mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.page-services .service-top .tile h3 { font-size: 14px; margin-bottom: 4px; }
.page-services .service-top .tile p { margin: 0; font-size: 12px; line-height: 1.45; }
.page-services .industry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-bottom: 4px;
}
.page-services .v-row {
    grid-template-columns: 128px 1fr;
    padding: 10px 12px;
    font-size: 12.5px;
    gap: 8px;
    background: var(--wash);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-bottom: 0;
    border-radius: 0 8px 8px 0;
    align-items: center;
}
.page-services .focus-grid {
    flex: 1 1 auto;
    gap: 8px;
    margin-top: 8px;
    align-content: stretch;
    grid-auto-rows: 1fr;
    min-height: 0;
}
.page-services .focus-grid .tile {
    padding: 10px 11px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.page-services .focus-grid h3 { margin-bottom: 3px; font-size: 13px; }
.page-services .focus-grid p { font-size: 11.5px; line-height: 1.35; }
.page-services .kicker { margin-bottom: 6px; }

.v-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.v-row strong { color: var(--brand-deep); }

.banner-frame {
    margin-top: 10px;
    overflow: hidden;
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.banner-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 92mm;
    object-fit: contain;
}
.banner-frame.compact { margin-top: 0; }
.banner-frame.compact img {
    max-height: none;
    height: 28mm;
    object-fit: cover;
    object-position: center;
}
.process .tile { min-height: 78px; }

@media print {
    @page { size: A4 portrait; margin: 0; }
    html, body {
        width: 210mm;
        margin: 0;
        padding: 0;
        background: #fff;
    }
    .toolbar { display: none !important; }
    .book {
        width: 210mm;
        margin: 0;
        padding: 0;
    }
    .page {
        width: 210mm !important;
        height: 297mm !important;
        max-width: 210mm;
        max-height: 297mm;
        margin: 0 !important;
        box-shadow: none !important;
        overflow: hidden;
        page-break-after: always;
        break-after: page;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .page:last-child {
        page-break-after: auto;
        break-after: auto;
    }
    img {
        max-width: 100%;
    }
    .award-photos img {
        height: 42mm !important;
        max-height: none !important;
        object-fit: cover !important;
    }
    .award-photos .award-doc img {
        object-fit: contain !important;
    }
    .banner-frame.compact img {
        height: 28mm !important;
        max-height: none !important;
        object-fit: cover !important;
    }
    .page-services .focus-grid {
        min-height: 90mm;
    }
    .page-clients .logo-wall.dense img {
        height: 15mm !important;
        max-height: 15mm !important;
        min-height: 15mm !important;
        width: auto !important;
        max-width: 96% !important;
    }
}
