/* Proportion tuning after visual comparison with the supplied layout. */
.home-logo {
    width: clamp(70px, 6.2vw, 105px);
}

.people-stage {
    left: 0%;
    bottom: 1.5%;
    width: 1150px;
    height: 83%;
}

.people-stage img {
    width: 31%;
    margin: 0 -7%;
}

.people-stage img:nth-child(1),
.people-stage img:nth-child(6) {
    height: 91%;
}

.home-content {
    top: 40%;
    transform: none;
}

.home-copyright {
    margin-top: 5vh;
}

.contact-brand img {
    left: 18%;
    width: 58%;
    height: 70%;
}

.contact-team {
    right: .5%;
    width: 28%;
    height: 29%;
}

.contact-team img {
    width: 30%;
    margin: 0 -6.5%;
}

@media (max-height: 700px) {
    .home-content { top: 35%; }
    .home-copyright { margin-top: 3vh; }
}

/* Home typography — matched to the approved reference crop. */
.home-content h1 {
    font-size: clamp(58px, 5.52vw, 106px);
    font-weight: 300;
    line-height: .92;
    letter-spacing: .055em;
}

.home-content h2 {
    margin: .42em 0 1.05em;
    font-size: clamp(16px, 1.44vw, 26px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .055em;
}

.home-intro {
    margin: 0;
    font-size: clamp(11px, .94vw, 17px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: .035em;
}

.service-summary {
    margin: 1.65em 0 1.8em;
    font-size: clamp(10px, .89vw, 16px);
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: .025em;
}

.service-summary li {
    gap: .38em;
    white-space: nowrap;
}

.service-summary .service-link {
    display: flex;
    align-items: baseline;
    gap: .38em;
    color: inherit;
    text-decoration: none;
}

.service-summary li::before {
    content: '';
    flex: 0 0 auto;
    width: 0;
    height: 0;
    margin-right: .08em;
    border-top: .38em solid transparent;
    border-bottom: .38em solid transparent;
    border-left: .58em solid currentColor;
}

.service-summary .maintenance::before { border-left-color: #115e59; }
.service-summary .renovate::before { border-left-color: #2563eb; }
.service-summary .media::before { border-left-color: #ea580c; }
.service-summary .online::before { border-left-color: #07d5ff; }
.service-summary .event::before { border-left-color: #db2777; }
.service-summary .radio::before { border-left-color: #38bd6d; }

.service-summary strong {
    flex: 0 0 auto;
    font-weight: 500;
    letter-spacing: .045em;
    transition: color 180ms ease;
}

.service-summary .maintenance:hover strong { color: #115e59; }
.service-summary .renovate:hover strong { color: #2563eb; }
.service-summary .media:hover strong { color: #ea580c; }
.service-summary .online:hover strong { color: #07d5ff; }
.service-summary .event:hover strong { color: #db2777; }
.service-summary .radio:hover strong { color: #38bd6d; }

.service-summary span::before {
    content: '> ';
    opacity: 1;
}

.closing-copy {
    margin: 0;
    font-size: clamp(11px, .89vw, 16px);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: .035em;
}

.home-copyright {
    display: grid;
    grid-template-columns: 3px auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 1px;
    align-items: start;
    width: max-content;
    font-size: clamp(7px, .5vw, 10px);
    line-height: 1.08;
    letter-spacing: .035em;
    opacity: .78;
}

.home-copyright::before {
    content: '';
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: stretch;
    width: 2px;
    min-height: 38px;
    background: rgba(255, 255, 255, .9);
}

.home-copyright img {
    grid-column: 2;
    grid-row: 1;
    width: 34px;
    height: auto;
}

.home-copyright span {
    grid-column: 2;
    grid-row: 2;
    display: block;
}

/* Tight, overlapping team composition from the approved reference. */
.people-stage {
    left: 1.2%;
    bottom: 0;
    width: 56.5%;
    height: 96%;
}

.people-stage img {
    width: 42%;
    height: 100%;
    margin: 0 -13%;
}

.people-stage img:nth-child(1),
.people-stage img:nth-child(6) {
    height: 92%;
}

/* Fine alignment per person: head line, overlap, and outer angles. */
.people-stage {
    left: 1.8%;
}

.people-stage img:nth-child(1),
.people-stage img:nth-child(6) {
    height: 100%;
}

.people-stage img:nth-child(2) { transform: translateX(-1.2%); }
.people-stage img:nth-child(3) { transform: translateX(-15.4%); }
.people-stage img:nth-child(4) { transform: translateX(-3.5%); }
.people-stage img:nth-child(5) { transform: translateX(-12.4%); }
.people-stage img:nth-child(6) { transform: translateX(-5.2%); }

.office-drawing {
    position: absolute;
    z-index: 1;
    right: 0%;
    bottom: 0%;
    width: 100%;
    height: 522px;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: auto;
    user-select: none;
}

/* Final full-frame spacing pass. */
.home-logo {
    left: 3.55%;
    width: clamp(82px, 7.65vw, 120px);
}

.people-stage {
    left: 0%;
    bottom: 0;
    width: 56.5%;
    height: 96%;
}

.people-stage img {
    width: 35%;
    height: 100%;
    margin: 0 -9.9%;
}

.people-stage img:nth-child(1),
.people-stage img:nth-child(6) {
    height: 100%;
}

.home-content {
    top: 51.5%;
}

.home-copyright {
    margin-top: 10.5vh;
}

@media (max-height: 700px) {
    .home-content { top: 39%; }
    .home-copyright { margin-top: 7vh; }
}

.people-stage {
    top: 50%;
    bottom: auto;
    height: 800px;
    width: 1150px;
    transform: translateY(-50%);
    z-index: 6;
    pointer-events: auto;
}

.people-stage img:nth-child(6) {
    transform: translateX(-21%);
}

.home-copyright {
    margin-top: 12.5vh;
}

@media (max-height: 700px) {
    .home-copyright { margin-top: 9vh; }
}

/* Person stacking only — dimensions and coordinates intentionally unchanged. */
.people-stage img { position: relative; }
.people-stage img:nth-child(1) { z-index: 1; }
.people-stage img:nth-child(2) { z-index: 2; }
.people-stage img:nth-child(3) { z-index: 4; }
.people-stage img:nth-child(4) { z-index: 3; }
.people-stage img:nth-child(5) { z-index: 2; }
.people-stage img:nth-child(6) { z-index: 1; }

/* Contact page proportions and spacing. */
.company-info {
    top: 10.4%;
}

.contact-details {
    left: 45.4%;
    right: 2.5%;
    top: 10.4%;
    height: 85%;
}

.contact-slide h2 {
    font-size: clamp(46px, 4.1vw, 78px);
    line-height: .88;
}

.section-kicker {
    margin-top: .5em;
    margin-bottom: 1.15em;
    font-size: clamp(10px, .88vw, 16px);
    line-height: 1.1;
}

.company-info dl {
    font-size: clamp(8px, .76vw, 13px);
    line-height: 1.08;
}

.company-info dt {
    margin-top: .65em;
}

.office-columns {
    gap: 9%;
    margin-top: 1.2%;
}

.office-card {
    font-size: clamp(8px, .74vw, 13px);
    line-height: 1.12;
}

.office-card h3 {
    margin-bottom: 1em;
    font-size: clamp(11px, .88vw, 16px);
}

.office-card .label {
    margin-top: .8em;
}

.office-card iframe {
    height: 29.5vh;
    min-height: 185px;
    margin-top: 1.35em;
}

.email-contact {
    width: 55%;
    font-size: clamp(8px, .67vw, 12px);
    line-height: 1.38;
}

.email-contact h3 {
    font-size: clamp(11px, .88vw, 16px);
}

.office-image {
    width: 29.5%;
    height: 45%;
}

.contact-brand {
    top: 11.5%;
}

.contact-team {
    right: .7%;
    width: 26.5%;
    height: 27%;
}

.contact-brand {
    top: 9%;
}

.office-card {
    font-size: clamp(9px, .82vw, 14px);
    line-height: 1.15;
}

.office-card iframe {
    width: calc(101.3% + 1px);
    margin-left: -1.3%;
}

.email-contact {
    font-size: clamp(9px, .78vw, 13px);
    line-height: 1.38;
}

.email-contact h3 {
    font-size: clamp(12px, 1vw, 17px);
}

.office-image {
    width: 32.5%;
    height: 48%;
}

.contact-team img {
    width: 25.5%;
    margin: 0 -5%;
}

.contact-brand img {
    left: -67px;
    top: 0;
    width: 100%;
    height: 100%;
}

.office-columns {
    gap: 8.4%;
}

.office-card iframe {
    width: 97.7%;
}

.contact-team {
    right: -.5%;
    bottom: -13%;
    height: 44%;
}

.contact-team img {
    width: 42%;
    height: 100%;
    margin: 0 -13%;
}

.person-card {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 35%;
    height: 100%;
    margin: 0 -10.9%;
    container-type: size;
    pointer-events: none;
    --hit-left: 24%;
    --hit-width: 50%;
    --hit-top: 36%;
    --hit-height: 60%;
    --label-left: 50%;
    --label-top: 24%;
    --label-y-offset: 0%;
}

.people-stage .person-card > img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
    cursor: pointer;
    pointer-events: none;
}

.people-stage .person-card > .person-hover-image {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 220ms ease;
}

.person-card:hover > .person-hover-image,
.person-card:has(.person-hover-target:hover) > .person-hover-image,
.person-hover-target:hover ~ .person-hover-image {
    opacity: 1;
}

.people-stage .person-card:nth-child(1) { z-index: 1; }
.people-stage .person-card:nth-child(2) { z-index: 2; transform: translateX(-1.2%); }
.people-stage .person-card:nth-child(3) { z-index: 4; transform: translateX(-15.4%); }
.people-stage .person-card:nth-child(4) { z-index: 3; transform: translateX(-3.5%); }
.people-stage .person-card:nth-child(5) { z-index: 2; transform: translateX(-12.4%); }
.people-stage .person-card:nth-child(6) { z-index: 1; transform: translateX(-17%); }

.person-hover-target {
    position: absolute;
    z-index: 19;
    left: var(--hit-left);
    top: var(--hit-top);
    width: var(--hit-width);
    height: var(--hit-height);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.person-hover-label {
    position: absolute;
    z-index: 20;
    left: var(--label-left);
    top: calc(var(--label-top) + var(--label-y-offset));
    padding: .08em .9em .16em .5em;
    color: #fff;
    font-family: 'Caveat Brush', cursive;
    font-size: clamp(18px, 2.3cqh, 32px);
    line-height: 1;
    letter-spacing: .025em;
    white-space: nowrap;
    pointer-events: none;
    transform-origin: left center;
    transition: left 220ms ease, top 220ms ease, font-size 220ms ease;
}

.person-card:hover > .person-hover-label,
.person-card:has(.person-hover-target:hover) > .person-hover-label,
.person-hover-target:hover ~ .person-hover-label {
    font-size: clamp(32px, 4.1cqh, 58px);
}

.person-maintenance {
    --hit-left: 24%;
    --hit-width: 50%;
    --label-left: 24%;
    --label-top: 9.5%;
}

.person-maintenance .person-hover-label {
    left: auto;
    right: 42%;
    text-align: right;
}

.person-media {
    --hit-left: 24%;
    --hit-width: 50%;
    --label-left: 44%;
    --label-top: 7%;
}

.person-event {
    --hit-left: 47%;
    --hit-width: 42%;
    --label-left: 22%;
    --label-top: 1.9%;
}

.person-event .person-hover-label {
    left: auto;
    right: 37%;
    text-align: right;
}

.person-online {
    --hit-left: 18%;
    --hit-width: 50%;
    --label-left: 53%;
    --label-top: 6%;
}

.person-radio {
    --hit-left: 29%;
    --hit-width: 45%;
    --label-left: 62%;
    --label-top: 10.9%;
}

.person-renovate {
    --hit-left: 34%;
    --hit-width: 51%;
    --label-left: 71%;
    --label-top: 4.6%;
}

/* Fixed 1280 × 720 desktop/tablet design canvas.
   The outer viewport is the only layer that scales with the browser. */
html,
body {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

body {
    position: relative;
    background: var(--cyan);
    transition: background-color var(--slide-time) var(--slide-ease);
}

body[data-page="contact"] {
    background: var(--gray);
}

.design-viewport {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.presentation {
    width: 100vw;
    height: 100dvh;
    container-type: size;
    cursor: grab;
}

.presentation.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.presentation.is-dragging .slides-track {
    transition: none;
}

.slides-track {
    width: 200vw;
    height: 100%;
}

.presentation[data-page="contact"] .slides-track {
    transform: translate3d(-100vw, 0, 0);
}

.presentation .home-screen,
.presentation .contact-screen,
.presentation[data-page="home"] .contact-screen,
.presentation[data-page="contact"] .home-screen {
    visibility: visible;
    transition: none;
}

.slide {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
}

.home-slide,
.home-screen {
    left: 0;
    top: 0;
    transform-origin: left top;
}

/* Freeze every viewport-derived value at its approved 1280 × 720 result. */
.home-logo { width: 120px; }

.home-logo {
    display: block;
    aspect-ratio: 201 / 173;
    cursor: pointer;
    z-index: 12;
}

.home-logo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 180ms ease;
}

.home-logo-hover {
    opacity: 0;
}

.home-logo:hover .home-logo-hover {
    opacity: 1;
}

.home-logo:hover .home-logo-base {
    opacity: 0;
}

.home-content {
    left: auto;
    right: 0;
    top: 37%;
    width: 39%;
    z-index: 7;
}

.nav-button { font-size: 8px; }

.company-info {
    left: 20.5%;
    top: 10.4%;
    width: 18%;
}
.contact-details {
    left: 45.4%;
    right: 2.5%;
    top: 10.4%;
}
.contact-slide h2 { font-size: 52.5px; }
.section-kicker { font-size: 11.3px; }
.company-info dl { font-size: 9.7px; }
.office-card { font-size: 10.5px; }
.office-card h3 { font-size: 11.3px; }
.office-card iframe { height: 212px; }
.email-contact { font-size: 10px; }
.email-contact h3 { font-size: 12.8px; }

/* Keep all imagery crisp: disable inherited filters and blurred shadows. */
.people-stage img,
.contact-team img,
.office-card iframe {
    filter: none;
}

.home-bottom-actions {
    position: absolute;
    z-index: 9;
    right: 0;
    bottom: 6.4%;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    align-content: flex-end;
    flex-wrap: wrap;
    flex-direction: row;
    width: 39%;
}

.home-bottom-actions .home-copyright {
    position: static;
    margin-top: 0;
    transform: none;
}

.home-bottom-actions .go-contact {
    position: static;
}

body.is-leaving-for-event {
    pointer-events: none;
}

body.is-leaving-for-event .design-viewport {
    animation: homeExitToEvent 720ms var(--slide-ease) forwards;
}

html.home-entering-from-event .design-viewport {
    animation: homeEnterFromEvent 760ms var(--slide-ease) forwards;
}

@keyframes homeExitToEvent {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(0, -100dvh, 0);
    }
}

@keyframes homeEnterFromEvent {
    from {
        transform: translate3d(0, -100dvh, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1200px) {
    .home-logo {
        left: 3vw;
        width: clamp(120px, 14vw, 172px);
    }

    .people-stage {
        left: 1.5vw;
        top: 50%;
        width: 88vw;
        height: min(90dvh, 61vw);
    }

    .home-content {
        right: 2vw;
        top: clamp(190px, 36dvh, 280px);
        width: clamp(380px, 43vw, 500px);
    }

    .home-content h1 {
        font-size: clamp(52px, 5.52vw, 70px);
    }

    .home-content h2 {
        font-size: clamp(14px, 1.44vw, 22px);
    }

    .home-intro {
        font-size: clamp(10px, .94vw, 15px);
    }

    .service-summary {
        font-size: clamp(9px, .89vw, 14px);
    }

    .closing-copy {
        font-size: clamp(10px, .89vw, 14px);
    }

    .office-drawing {
        width: 42vw;
        height: 50dvh;
    }

    .home-bottom-actions {
        right: 2vw;
        width: clamp(380px, 43vw, 500px);
    }

    .person-radio,
    .person-renovate {
        --hit-top: 66%;
        --hit-height: 28%;
    }
}

@media (max-width: 900px) {
    .people-stage {
        left: -14vw;
        top: 57%;
        width: 112vw;
        height: min(78dvh, 78vw);
    }

    .home-content {
        right: 3vw;
        top: clamp(120px, 19dvh, 190px);
        width: 54vw;
    }

    .home-content h1 {
        font-size: clamp(46px, 8.2vw, 72px);
    }

    .home-content h2 {
        font-size: clamp(14px, 2.2vw, 19px);
    }

    .service-summary {
        margin: 1.2em 0 1.35em;
    }

    .service-summary li,
    .service-summary .service-link {
        white-space: normal;
    }

    .home-bottom-actions {
        right: 3vw;
        width: 54vw;
        bottom: 5%;
    }
}

@media (max-width: 640px) {
    .home-logo {
        left: 5vw;
        width: clamp(88px, 24vw, 120px);
    }

    .people-stage {
        left: -50vw;
        top: 74%;
        width: 145vw;
        height: min(42dvh, 92vw);
    }

    .person-hover-label {
        display: none;
    }

    .home-content {
        left: 5vw;
        right: auto;
        top: 17dvh;
        width: 90vw;
        z-index: 7;
    }

    .home-content h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .home-content h2 {
        margin-bottom: .8em;
        font-size: clamp(13px, 4vw, 18px);
    }

    .home-intro,
    .closing-copy {
        font-size: clamp(10px, 3vw, 13px);
    }

    .service-summary {
        font-size: clamp(9px, 2.7vw, 12px);
        line-height: 1.25;
    }

    .office-drawing {
        width: 58vw;
        height: 38dvh;
        opacity: .75;
    }

    .home-bottom-actions {
        left: 5vw;
        right: auto;
        bottom: 4.2%;
        width: 90vw;
    }
}

/* Home is already fluid-size, so keep imagery on real layout pixels instead of scaling a canvas layer. */
.home-screen .people-stage {
    contain: layout paint;
}

.home-screen .people-stage .person-card {
    flex: 0 0 auto;
    transform-origin: center bottom;
    backface-visibility: hidden;
}

.home-screen .people-stage .person-card > img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: auto;
}

.home-screen .people-stage .person-card > .person-hover-image {
    will-change: opacity;
}

.home-screen .home-logo img,
.home-screen .office-drawing {
    image-rendering: auto;
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    body.is-leaving-for-event .design-viewport {
        animation: none;
    }

    html.home-entering-from-event .design-viewport {
        animation: none;
    }
}
