/* =========================================================================
   PORTFOLIO PAGE (portfolio.php)
   Uses the site's shared pieces from common.css / buttons.css:
   .cs-eyebrow, .cs-title, .cs-accent, .cs-btn, .cs-section

   1.  Colours and shared bits
   2.  Hero: scrolling wall of project work covers the whole banner
   3.  Numbers (overlap the hero)
   4.  Section heads
   5.  Industries (6 a row; hover shows the photo + "View Work")
   6.  Featured case studies (3 a row)
   7.  Filters + project cards
   8.  Mid CTA (text left, buttons right)
   9.  About our portfolio (photo left, text right)
   10. Location (areas we serve, office, map)
   11. Final CTA (text left, glass form right)
   12. Tablets and phones
   13. Less motion
   ========================================================================= */

/* ---------- 1. Colours and shared bits ---------- */
.pf-page {
    --pf-blue: #0870af;
    --pf-cyan: #159dd3;
    --pf-navy: #06121d;
    --pf-ink: #0f2b3d;
    --pf-line: #e1edf4;
    --pf-ice: #eef7fc;
    --pf-text: var(--cs-c-text, #66737d);
    --pf-title: var(--cs-c-title, #1d2b36);
    --pf-grad: var(--cs-grad-brand, linear-gradient(135deg, #0870af, #065a8c));
}

.pf-page .cs-eyebrow {
    text-align: left;
}

.pf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-tags li {
    padding: 5px 11px;
    color: var(--pf-blue);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--pf-ice);
    border: 1px solid #d4e8f3;
    border-radius: 999px;
}

.pf-tags--sm li {
    padding: 3px 9px;
    font-size: 0.74rem;
}

/* light colour sets for icons and number tiles: .pf-tone-1 … 6 */
.pf-tone-1 { --tone: #0870af; --tone-bg: #e9f4fc; --tone-line: #cfe5f5; }
.pf-tone-2 { --tone: #158a52; --tone-bg: #e8f7ef; --tone-line: #c9ebd8; }
.pf-tone-3 { --tone: #6a4cc9; --tone-bg: #f1edfd; --tone-line: #ddd3f8; }
.pf-tone-4 { --tone: #c97a00; --tone-bg: #fff4e2; --tone-line: #fbe2b6; }
.pf-tone-5 { --tone: #c42a64; --tone-bg: #fdecf2; --tone-line: #f7cfdd; }
.pf-tone-6 { --tone: #0b8790; --tone-bg: #e4f6f7; --tone-line: #c3e8ea; }

.pf-loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pf-blue);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.pf-loc i {
    color: #e0483e;
    font-size: 0.85em;
}

/* ---------- 2. Hero ---------- */
.pf-hero {
    --pf-col: 196px;
    --pf-gap: 16px;
    --pf-wall-h: 1320px;

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(620px, 84vh, 760px);
    padding: clamp(48px, 6vw, 80px) 0 clamp(130px, 12vw, 160px);
    overflow: hidden;
    color: #ffffff;
    background: var(--pf-navy);
}

/* the wall: a tilted grid larger than the banner, centred, so it covers every corner */
.pf-hero__wall {
    position: absolute;
    z-index: -2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pf-hero__grid {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(var(--cols, 11), var(--pf-col));
    gap: var(--pf-gap);
    height: var(--pf-wall-h);
    transform: translate(-50%, -50%) rotate(-13deg) skewX(-8deg);
}

.pf-hero__col {
    height: 100%;
    overflow: hidden;
}

/* two copies of the tiles move by half the track and start again */
.pf-hero__track {
    animation: pfWallUp var(--dur, 50s) linear infinite;
}

.pf-hero__col--down .pf-hero__track {
    animation-name: pfWallDown;
}

@keyframes pfWallUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes pfWallDown {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

.pf-tile {
    display: block;
    margin-bottom: var(--pf-gap);
    overflow: hidden;
    background: #102638;
    border-radius: 12px;
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.pf-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-tile--land,
.pf-tile--logo {
    aspect-ratio: 16 / 10;
}

.pf-tile--port {
    aspect-ratio: 4 / 5;
}

.pf-tile--tall {
    aspect-ratio: 2 / 3;
}

.pf-tile--wide {
    aspect-ratio: 480 / 225;
}

/* "show the whole picture" (logos, posters that must not be cut): fitted inside a white tile */
.pf-tile--whole {
    background: #fff;
}

.pf-tile--whole img {
    padding: 8%;
    object-fit: contain;
}

/* the work shows across the whole banner; a soft shade behind the text keeps it readable */
.pf-hero__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 22% 50%, rgba(6, 18, 29, 0.55), transparent 70%),
        linear-gradient(90deg, rgba(6, 18, 29, 0.86) 0%, rgba(6, 18, 29, 0.74) 34%, rgba(6, 18, 29, 0.42) 60%, rgba(6, 18, 29, 0.22) 100%),
        linear-gradient(0deg, rgba(6, 18, 29, 0.75) 0%, rgba(6, 18, 29, 0) 28%),
        linear-gradient(180deg, rgba(6, 18, 29, 0.55) 0%, rgba(6, 18, 29, 0) 20%);
    pointer-events: none;
}

.pf-hero__inner {
    position: relative;
}

.pf-hero__content {
    max-width: 620px;
}

.pf-hero__content .cs-eyebrow,
.pf-hero__title,
.pf-hero__text {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.pf-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(226, 238, 246, 0.72);
    font-size: 13px;
}

.pf-crumbs a {
    color: rgba(226, 238, 246, 0.72);
    text-decoration: none;
}

.pf-crumbs a:hover {
    color: #ffffff;
}

.pf-crumbs i {
    font-size: 9px;
    opacity: 0.6;
}

.pf-crumbs span {
    color: #ffffff;
    font-weight: 600;
}

.pf-hero__title {
    margin: 14px 0 0;
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
}

.pf-hero__text {
    max-width: 560px;
    margin: 16px 0 0;
    color: #c4d4de;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
    line-height: 1.75;
}

.pf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-top: 26px;
}

/* ---------- 3. Numbers (each tile its own light colour) ---------- */
.pf-numbers {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * clamp(80px, 8vw, 100px));
}

.pf-numbers__panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 12px;
    list-style: none;
    background: #ffffff;
    border: 1px solid var(--pf-line);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(6, 18, 29, 0.18);
}

.pf-number {
    display: flex;
    /*align-items: center;*/
    gap: 16px;
    padding: 18px 15px;
    background: var(--tone-bg);
    border: 1px solid var(--tone-line);
    border-radius: 18px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.pf-number:hover {
    box-shadow: 0 14px 30px rgba(6, 18, 29, 0.08);
    transform: translateY(-3px);
}

.pf-number__icon {
    display: grid;
    flex: 0 0 auto;
    width: 51px;
    height: 51px;
    place-items: center;
    color: var(--tone);
    font-size: 21px;
    background: #ffffff;
    border: 1px solid var(--tone-line);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(6, 18, 29, 0.06);
}

.pf-number__value {
    display: block;
    color: var(--pf-title);
    font-size: clamp(1.5rem, 1rem + 1vw, 1.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.pf-number__label {
    display: block;
    margin-top: 5px;
    color: var(--pf-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ---------- 4. Section heads (centred) ---------- */
.pf-head {
    max-width: 760px;
    margin: 0 auto clamp(28px, 3.5vw, 40px);
    text-align: center;
}

.pf-page .pf-head .cs-eyebrow {
    text-align: center;
}

.pf-head__title {
    margin: 0;
    font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.35rem);
    text-align: center;
}

.pf-head__text {
    max-width: 640px;
    margin: 14px auto 0;
    color: var(--pf-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* ---------- 5. Industries ---------- */
.pf-industries {
    background:
        radial-gradient(ellipse 50% 60% at 100% 0%, rgba(21, 157, 211, 0.07), transparent 70%),
        #ffffff;
}

.pf-inds {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-indc {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 212px;
    padding: 22px 18px 18px;
    overflow: hidden;
    color: var(--pf-title);
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff, #f7fbfe);
    border: 1px solid var(--pf-line);
    border-radius: 22px;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        color 0.3s ease;
}

/* the industry photo, shown on hover */
.pf-indc__img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.12);
    transition:
        opacity 0.45s ease,
        transform 0.8s ease;
}

.pf-indc::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 18, 29, 0.35) 0%, rgba(6, 18, 29, 0.6) 45%, rgba(6, 40, 64, 0.94) 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    content: "";
}

.pf-indc__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--tone, var(--pf-blue));
    font-size: 23px;
    background: var(--tone-bg, var(--pf-ice));
    border: 1px solid var(--tone-line, #d4e8f3);
    border-radius: 18px;
    transition:
        background 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        transform 0.4s ease;
}

.pf-indc__name {
    margin-top: 18px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.pf-indc__count {
    margin-top: 6px;
    color: var(--pf-text);
    font-size: 0.82rem;
    transition: color 0.3s ease;
}

.pf-indc__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding: 7px 0;
    color: var(--pf-blue);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    transition:
        padding 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.pf-indc__more i {
    transition: transform 0.3s ease;
}

.pf-indc:hover,
.pf-indc:focus-visible {
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 24px 46px rgba(6, 40, 64, 0.28);
    transform: translateY(-6px);
}

.pf-indc:focus-visible {
    outline: 3px solid var(--pf-cyan);
    outline-offset: 3px;
}

.pf-indc:hover .pf-indc__img,
.pf-indc:focus-visible .pf-indc__img {
    opacity: 1;
    transform: scale(1);
}

.pf-indc:hover::after,
.pf-indc:focus-visible::after {
    opacity: 1;
}

.pf-indc:hover .pf-indc__icon,
.pf-indc:focus-visible .pf-indc__icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
    backdrop-filter: blur(6px);
}

.pf-indc:hover .pf-indc__count,
.pf-indc:focus-visible .pf-indc__count {
    color: rgba(255, 255, 255, 0.8);
}

.pf-indc:hover .pf-indc__more,
.pf-indc:focus-visible .pf-indc__more {
    padding: 7px 14px;
    background: #ffffff;
}

.pf-indc:hover .pf-indc__more i,
.pf-indc:focus-visible .pf-indc__more i {
    transform: translateX(3px);
}

/* ---------- 6. Featured case studies ---------- */
.pf-work {
    background: linear-gradient(180deg, #f5fafd 0%, #ffffff 100%);
}

.pf-feats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-feats[hidden],
.pf-feat-wrap[hidden] {
    display: none;
}

.pf-feat {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--pf-line);
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(8, 72, 112, 0.08);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

/* gradient ring on hover */
.pf-feat::before {
    position: absolute;
    inset: -1px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--pf-cyan), var(--pf-blue), #7fd3f2);
    border-radius: 27px;
    opacity: 0;
    transition: opacity 0.4s ease;
    content: "";
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pf-feat:hover {
    box-shadow: 0 30px 60px rgba(8, 72, 112, 0.16);
    transform: translateY(-6px);
}

.pf-feat:hover::before {
    opacity: 1;
}

.pf-feat__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eef3f7;
    border-radius: 18px;
}

.pf-feat__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 0;
    transition: transform 0.7s ease;
}

.pf-feat:hover .pf-feat__media img {
    transform: scale(1.06);
}

.pf-feat__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 18, 29, 0) 55%, rgba(6, 18, 29, 0.35) 100%);
    content: "";
}

.pf-feat__badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(6, 18, 29, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.pf-feat__badge i {
    color: #fbbc04;
}

.pf-feat__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 12px 10px;
}

.pf-feat__client {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pf-feat__client strong {
    display: block;
    color: var(--pf-title);
    font-size: 0.98rem;
    line-height: 1.3;
}

.pf-feat__logo {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 6px;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    background: var(--pf-grad);
    border-radius: 14px;
}

.pf-feat__logo:has(img) {
    background: #ffffff;
    border: 1px solid var(--pf-line);
}

.pf-feat__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pf-feat__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 3px;
    color: var(--pf-text);
    font-size: 0.8rem;
}

.pf-feat__title {
    margin: 16px 0 12px;
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.4;
}

.pf-feat__title a {
    color: var(--pf-title);
    text-decoration: none;
}

/* the whole card opens the project */
.pf-feat__title a::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: 26px;
    content: "";
}

.pf-feat__title a:focus-visible {
    outline: none;
}

.pf-feat__title a:focus-visible::after {
    outline: 3px solid var(--pf-cyan);
    outline-offset: 3px;
}

.pf-feat__go {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 12px 14px 12px 16px;
    color: var(--pf-blue);
    font-size: 0.88rem;
    font-weight: 700;
    background: var(--pf-ice);
    border-radius: 14px;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.pf-feat__go i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #ffffff;
    font-size: 12px;
    background: var(--pf-grad);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.pf-feat .pf-tags {
    margin-bottom: 16px;
}

.pf-feat:hover .pf-feat__go {
    color: #ffffff;
    background: var(--pf-grad);
}

.pf-feat:hover .pf-feat__go i {
    color: var(--pf-blue);
    background: #ffffff;
    transform: translateX(3px);
}

/* ---------- 7. Filters + project cards ---------- */
.pf-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: clamp(32px, 4vw, 48px) 0 22px;
}

.pf-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    color: #3d4f5c;
    font-size: 0.9rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #d6e5ee;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.pf-chip small {
    display: grid;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    place-items: center;
    color: var(--pf-blue);
    font-size: 11px;
    font-weight: 700;
    background: var(--pf-ice);
    border-radius: 999px;
}

.pf-chip:hover {
    color: var(--pf-blue);
    border-color: #a9d2e8;
}

.pf-chip.is-active {
    color: #ffffff;
    background: var(--pf-grad);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(8, 112, 175, 0.25);
}

.pf-chip.is-active small {
    color: var(--pf-blue);
    background: #ffffff;
}

.pf-chip:focus-visible {
    outline: 2px solid var(--pf-cyan);
    outline-offset: 2px;
}

.pf-filters__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pf-filters__industry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 12px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--pf-ink);
    border-radius: 999px;
}

.pf-filters__industry[hidden] {
    display: none;
}

.pf-filters__industry button {
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    color: #ffffff;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.pf-filters__count {
    color: var(--pf-text);
    font-size: 0.88rem;
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-card-wrap[hidden] {
    display: none;
}

.pf-card-wrap.is-in {
    animation: pfCardIn 0.45s ease both;
}

@keyframes pfCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--pf-line);
    border-radius: 20px;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.pf-card:hover {
    border-color: #c6e1f0;
    box-shadow: 0 22px 44px rgba(8, 72, 112, 0.13);
    transform: translateY(-5px);
}

.pf-card__media {
    position: relative;
    margin: 10px 10px 0;
    overflow: hidden;
    background: #eef3f7;
    border: 1px solid #e3ecf2;
    border-radius: 14px;
}

.pf-card__bar {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    background: #f4f7fa;
    border-bottom: 1px solid #e3ecf2;
}

.pf-card__bar i {
    width: 7px;
    height: 7px;
    background: #cfd9e1;
    border-radius: 50%;
}

.pf-card__bar i:first-child {
    background: #ff6159;
}

.pf-card__bar i:nth-child(2) {
    background: #ffbd2e;
}

.pf-card__bar i:nth-child(3) {
    background: #28c941;
}

.pf-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 0;
    transition: transform 0.6s ease;
}

.pf-card:hover .pf-card__media img {
    transform: scale(1.05);
}

.pf-card__industry {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 11px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(6, 18, 29, 0.68);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

/* links on the cards: picture + title open the case study, the industry label opens the industry page */
.pf-card__media > a {
    display: block;
    overflow: hidden;
}

a.pf-card__industry {
    z-index: 1;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

a.pf-card__industry:hover,
a.pf-card__industry:focus-visible {
    color: #ffffff;
    background: var(--cb-blue, #0870af);
}

.pf-card__title a {
    color: inherit;
    text-decoration: none;
}

.pf-card__title a:hover,
.pf-card__title a:focus-visible {
    color: var(--cb-blue, #0870af);
}

a.pf-feat__ind {
    position: relative;
    z-index: 3;   /* above the card-wide link of .pf-feat__title a::after */
    color: inherit;
    text-decoration: none;
}

a.pf-feat__ind:hover,
a.pf-feat__ind:focus-visible {
    color: var(--cb-blue, #0870af);
    text-decoration: underline;
}

.pf-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.pf-card__title {
    margin: 0;
    color: var(--pf-title);
    font-size: 1.08rem;
    font-weight: 700;
}

.pf-card__text {
    margin: 6px 0 12px;
    color: var(--pf-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.pf-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--pf-blue);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.pf-card__link i {
    transition: transform 0.25s ease;
}

.pf-card__link:hover {
    color: var(--pf-cyan);
}

.pf-card__link:hover i {
    transform: translateX(4px);
}

.pf-grid__empty {
    margin: 10px 0 0;
    padding: 24px;
    color: var(--pf-text);
    text-align: center;
    background: #f6fafc;
    border: 1px dashed #cfe2ee;
    border-radius: 16px;
}

.pf-grid__empty button {
    padding: 0;
    color: var(--pf-blue);
    font-weight: 700;
    background: none;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
}

.pf-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pf-more[hidden] {
    display: none;
}


.pf-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}

.pf-grid__empty.is-soft {
    border-style: solid;
}

/* ---------- 8. Mid CTA (text left, buttons right) ---------- */
.pf-mid {
    padding: clamp(8px, 1.5vw, 16px) 0 clamp(48px, 6vw, 72px);
    background: #ffffff;
}

.pf-mid__box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px 28px;
    padding: clamp(26px, 3.5vw, 40px) clamp(24px, 4vw, 48px);
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(ellipse 50% 120% at 100% 50%, rgba(21, 157, 211, 0.45), transparent 70%),
        linear-gradient(120deg, #0a4f7c 0%, var(--pf-blue) 55%, #0d86c4 100%);
    border-radius: 26px;
    box-shadow: 0 24px 56px rgba(8, 72, 112, 0.25);
}

/* dotted pattern + soft rings */
.pf-mid__box::before {
    position: absolute;
    top: -60px;
    right: 26%;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.03);
    content: "";
}

.pf-mid__box::after {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 110px;
    height: 56px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    content: "";
}

.pf-mid__icon {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    place-items: center;
    color: #fbbc04;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
}

.pf-mid__content {
    position: relative;
    flex: 1;
}

.pf-mid__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    font-weight: 800;
    line-height: 1.25;
}

.pf-mid__content p {
    max-width: 560px;
    margin: 8px 0 0;
    color: rgba(235, 245, 251, 0.85);
    font-size: 0.98rem;
    line-height: 1.65;
}

.pf-mid__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- 9. About our portfolio (photo left, text right) ---------- */
.pf-about {
    background: linear-gradient(180deg, #ffffff 0%, #f5fafd 100%);
}

.pf-about__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 52px rgba(6, 18, 29, 0.16);
}

.pf-about__title {
    margin: 0;
    font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.35rem);
    text-align: left;
}

.pf-about__text {
    margin: 16px 0 0;
    color: var(--pf-text);
    font-size: 1rem;
    line-height: 1.75;
}

.pf-about__btn {
    margin-top: 26px;
}

/* ---------- 10. Location: areas we serve + office ---------- */
.pf-location {
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(21, 157, 211, 0.1), transparent 70%),
        linear-gradient(180deg, #f2f9fd 0%, #e9f5fb 100%);
}

.pf-areas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.pf-areas a,
.pf-areas span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #3b4b57;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d9eaf4;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(8, 72, 112, 0.06);
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.pf-areas i {
    color: var(--pf-blue);
    font-size: 0.9em;
}

.pf-areas a:hover {
    color: var(--pf-blue);
    border-color: #a9d2e8;
    box-shadow: 0 12px 24px rgba(8, 72, 112, 0.12);
    transform: translateY(-2px);
}

.pf-areas__more a {
    font-weight: 600;
}

.pf-office {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    max-width: 1080px;
    margin: clamp(32px, 4vw, 48px) auto 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9eaf4;
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(8, 72, 112, 0.1);
}

.pf-office__info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: clamp(22px, 3vw, 34px);
}

.pf-office__pin {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #d93a30;
    font-size: 19px;
    background: #fdecec;
    border: 1px solid #f7d0cd;
    border-radius: 15px;
}

.pf-office__title {
    margin: 2px 0 8px;
    color: var(--pf-title);
    font-size: 1.1rem;
    font-weight: 700;
}

.pf-office__address {
    margin: 0;
    color: var(--pf-text);
    font-size: 0.92rem;
    font-style: normal;
    line-height: 1.65;
}

.pf-office__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
}

.pf-office__contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pf-title);
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
}

.pf-office__contact a:hover {
    color: var(--pf-blue);
}

.pf-office__contact i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--pf-blue);
    font-size: 12px;
    background: var(--pf-ice);
    border-radius: 50%;
}

.pf-office__map {
    position: relative;
    min-height: 300px;
    background:
        linear-gradient(rgba(8, 112, 175, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(8, 112, 175, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
        #eaf3f9;
}

.pf-office__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- 11. Final CTA (text left, glass form right) ---------- */
.pf-contact {
    position: relative;
    isolation: isolate;
    padding: clamp(48px, 6vw, 80px) 0;
    overflow: hidden;
    color: #ffffff;
    background: var(--pf-navy) center / cover no-repeat;
}

.pf-contact::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 70% at 20% 50%, rgba(6, 18, 29, 0.7), transparent 100%),
        linear-gradient(90deg, rgba(6, 18, 29, 0.92) 0%, rgba(6, 18, 29, 0.72) 50%, rgba(6, 18, 29, 0.82) 100%);
    content: "";
}

.pf-contact__title {
    margin: 0;
    font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.3rem);
    text-align: left;
}

.pf-contact__text {
    margin: 14px 0 0;
    color: #c4d4de;
    font-size: 1rem;
    line-height: 1.7;
}

.pf-contact__points {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.pf-contact__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2eef6;
    font-size: 0.93rem;
}

.pf-contact__points i {
    color: #5fd38d;
}

.pf-contact__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.pf-glass {
    padding: clamp(20px, 2.6vw, 30px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.pf-glass__title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

/* outlined field: the label sits in a gap in the top border (no background needed, so it works on glass) */
.pf-gfield {
    --pf-field-line: rgba(255, 255, 255, 0.26);

    position: relative;
    margin-top: 8px;
}

.pf-gfield input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px 0 44px;
    color: #ffffff;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 0;
    border-radius: 12px;
    outline: none;
    transition: background 0.25s ease;
}

.pf-gfield input::placeholder {
    color: rgba(226, 238, 246, 0.5);
}

.pf-gfield__icon {
    position: absolute;
    top: 50%;
    left: 17px;
    color: rgba(226, 238, 246, 0.6);
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.25s ease;
}

.pf-gfield__outline {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
}

.pf-gfield__lead,
.pf-gfield__notch,
.pf-gfield__trail {
    border: 1px solid var(--pf-field-line);
    transition: border-color 0.25s ease;
}

.pf-gfield__lead {
    flex: 0 0 12px;
    border-right: 0;
    border-radius: 12px 0 0 12px;
}

.pf-gfield__notch {
    flex: 0 0 auto;
    max-width: calc(100% - 40px);
    padding: 0 5px;
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

.pf-gfield__trail {
    flex: 1;
    border-left: 0;
    border-radius: 0 12px 12px 0;
}

.pf-gfield__notch label {
    display: block;
    margin: 0;
    overflow: hidden;
    color: rgba(226, 238, 246, 0.92);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.25s ease;
}

.pf-gfield b {
    color: #7fd3f2;
}

.pf-gfield:hover {
    --pf-field-line: rgba(255, 255, 255, 0.42);
}

.pf-gfield:focus-within {
    --pf-field-line: #7fd3f2;
}

.pf-gfield:focus-within input {
    background: rgba(255, 255, 255, 0.09);
}

.pf-gfield:focus-within .pf-gfield__icon,
.pf-gfield:focus-within .pf-gfield__notch label {
    color: #7fd3f2;
}

/* a soft glow round the whole field when it is in use */
.pf-gfield:focus-within .pf-gfield__outline {
    border-radius: 12px;
    box-shadow: 0 0 0 4px rgba(21, 157, 211, 0.2);
}

/* keep browser autofill on the glass look */
.pf-gfield input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    transition: background-color 9999s ease 0s;
    caret-color: #ffffff;
}

.pf-glass__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
}

.pf-glass__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(226, 238, 246, 0.7);
    font-size: 0.84rem;
}

.pf-glass__note i {
    color: #7fd3f2;
}

.pf-glass__foot .cs-btn {
    margin-left: auto;
}

.pf-glass .cs-form-status {
    flex-basis: 100%;
    order: 3;
}

.pf-glass .cs-form-status:empty {
    display: none;
}

/* ---------- 12. Very wide screens, tablets and phones ---------- */
@media (min-width: 2000px) {
    .pf-hero {
        --pf-col: 220px;
        --pf-wall-h: 1480px;
    }
}

@media (max-width: 1199.98px) {
    .pf-inds {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pf-numbers__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pf-feats {
        gap: 16px;
    }

    .pf-feat__title {
        font-size: 1.04rem;
    }

    .pf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .pf-hero {
        --pf-col: 170px;
        --pf-gap: 14px;
        --pf-wall-h: 1150px;

        min-height: 0;
    }

    /* a stronger shade: the text runs across more of the banner */
    .pf-hero__shade {
        background:
            linear-gradient(90deg, rgba(6, 18, 29, 0.88) 0%, rgba(6, 18, 29, 0.74) 60%, rgba(6, 18, 29, 0.5) 100%),
            linear-gradient(0deg, rgba(6, 18, 29, 0.75) 0%, rgba(6, 18, 29, 0) 30%);
    }

    /* featured: one a row, photo left and text right */
    .pf-feats {
        grid-template-columns: minmax(0, 1fr);
    }

    .pf-feat {
        display: grid;
        grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
        gap: 6px;
    }

    .pf-feat__media img {
        height: 100%;
        min-height: 260px;
        object-position: 0 0;
    }

    .pf-feat__body {
        padding: 14px 14px 8px;
    }

    .pf-mid__box {
        flex-wrap: wrap;
    }

    .pf-mid__content {
        flex-basis: calc(100% - 92px);
    }

    .pf-mid__actions {
        flex-basis: 100%;
        padding-left: 92px;
    }

    .pf-about__photo {
        max-width: 600px;
        margin: 0 auto 8px;
    }

    .pf-office {
        grid-template-columns: minmax(0, 1fr);
    }

    .pf-contact::before {
        background: linear-gradient(180deg, rgba(6, 18, 29, 0.88) 0%, rgba(6, 18, 29, 0.8) 100%);
    }
}

@media (max-width: 767.98px) {
    .pf-inds {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .pf-feat {
        display: flex;
    }

    .pf-feat__media img {
        height: auto;
        min-height: 0;
        object-position: 50% 0;
    }

    .pf-feats {
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 575.98px) {
    .pf-hero {
        --pf-col: 130px;
        --pf-gap: 10px;
        --pf-wall-h: 960px;
    }

    .pf-tile {
        border-radius: 9px;
    }

    .pf-hero__shade {
        background:
            linear-gradient(180deg, rgba(6, 18, 29, 0.78) 0%, rgba(6, 18, 29, 0.84) 50%, rgba(6, 18, 29, 0.9) 100%);
    }

    .pf-hero__actions .cs-btn {
        justify-content: center;
        width: 100%;
    }

    .pf-numbers__panel {
        gap: 8px;
        padding: 8px;
        border-radius: 20px;
    }

    .pf-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 14px;
    }

    .pf-number__icon {
        width: 46px;
        height: 46px;
        font-size: 17px;
        border-radius: 14px;
    }

    .pf-number__label {
        font-size: 0.8rem;
    }

    .pf-inds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pf-indc {
        min-height: 164px;
        padding: 16px 14px 14px;
        border-radius: 18px;
    }

    .pf-indc__icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
        border-radius: 15px;
    }

    .pf-indc__name {
        margin-top: 14px;
        font-size: 0.93rem;
    }

    .pf-filters__chips {
        flex-wrap: nowrap;
        margin: 0 -12px;
        padding: 2px 12px 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pf-chip {
        flex: 0 0 auto;
    }

    .pf-grid {
        grid-template-columns: 1fr;
    }

    .pf-mid__box {
        border-radius: 22px;
    }

    .pf-mid__icon {
        width: 52px;
        height: 52px;
        font-size: 21px;
        border-radius: 16px;
    }

    .pf-mid__content {
        flex-basis: 100%;
    }

    .pf-mid__actions {
        padding-left: 0;
    }

    .pf-mid__box::after {
        display: none;
    }

    .pf-mid__actions .cs-btn,
    .pf-contact__buttons .cs-btn,
    .pf-glass__foot .cs-btn {
        justify-content: center;
        width: 100%;
    }

    .pf-about__photo {
        border-radius: 20px;
    }

    .pf-areas {
        gap: 8px;
    }

    .pf-areas a,
    .pf-areas span {
        gap: 8px;
        padding: 9px 14px;
        font-size: 0.86rem;
    }

    .pf-office {
        border-radius: 20px;
    }

    .pf-office__info {
        flex-direction: column;
    }

    .pf-office__map {
        min-height: 260px;
    }

    .pf-glass {
        border-radius: 20px;
    }
}

/* ---------- 13. Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .pf-hero__track {
        animation: none;
    }

    .pf-number,
    .pf-indc,
    .pf-indc__img,
    .pf-indc::after,
    .pf-indc__icon,
    .pf-indc__more,
    .pf-feat,
    .pf-feat__media img,
    .pf-feat__go,
    .pf-feat__go i,
    .pf-chip,
    .pf-card,
    .pf-card__media img,
    .pf-card__link i,
    .pf-areas a,
    .pf-gfield input {
        transition: none;
    }

    .pf-card-wrap.is-in {
        animation: none;
    }
}
