.profile-shell {
    background: #101428;
    color: #f4f1ea;
    padding: 1.25rem 0 1.5rem;
}

.profile-shell .container {
    width: 100%;
}

.profile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.profile-toolbar h1 {
    margin: 0;
    font-family: var(--font-display, "Roboto Slab", serif);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-toolbar p {
    margin: 0.15rem 0 0;
    color: rgba(244, 241, 234, 0.72);
    font-size: 0.82rem;
}

.profile-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.profile-controls button,
.profile-jump {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.profile-controls button:hover,
.profile-jump:hover {
    background: #c8222a;
    border-color: #c8222a;
}

.profile-controls button:disabled {
    opacity: 0.35;
    cursor: default;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.profile-stage {
    width: 100%;
    min-height: min(78vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2200px;
}

.flip-book {
    position: relative;
    width: 100%;
    height: min(78vh, 760px);
    display: flex;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
}

.flip-book.is-single {
    width: min(50%, 560px);
}

.flip-sheet,
.flip-turner {
    position: relative;
    width: 50%;
    height: 100%;
}

.flip-book.is-single .flip-sheet,
.flip-book.is-single .flip-turner {
    width: 100%;
}

.flip-sheet {
    overflow: hidden;
    background: #f6f3ec;
}

.flip-sheet-left {
    border-radius: 10px 0 0 10px;
    box-shadow: inset -14px 0 18px rgba(28, 33, 86, 0.08);
}

.flip-sheet-right,
.flip-book.is-single .flip-sheet-left {
    border-radius: 0 10px 10px 0;
    box-shadow: inset 14px 0 18px rgba(28, 33, 86, 0.06);
}

.flip-book.is-single .flip-sheet-left {
    border-radius: 10px;
    box-shadow: none;
}

.flip-book.is-single .flip-sheet-right {
    display: none;
}

.flip-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background: #f7f4ee;
    color: #1c2156;
    padding: 1rem 0.95rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.flip-page h2,
.flip-page h3,
.flip-page p {
    margin: 0;
}

.flip-page h2 {
    font-family: var(--font-display, "Roboto Slab", serif);
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    line-height: 1.15;
}

.flip-page h3 {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.flip-page p,
.flip-page li {
    font-size: 0.92rem;
    line-height: 1.4;
}

.flip-kicker {
    color: #c8222a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.flip-photo {
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    flex: 1 1 auto;
    min-height: 96px;
    height: auto;
}

.flip-photo-lg { flex-grow: 1.6; min-height: 140px; }
.flip-photo-md { flex-grow: 1.15; }
.flip-caption {
    font-size: 0.62rem;
    color: #5c6178;
}

.flip-cover,
.flip-back {
    background: #1c2156;
    color: #fff;
    justify-content: flex-end;
    padding: 0;
}

.flip-cover .flip-photo,
.flip-back .flip-photo {
    border-radius: 0;
    height: 46%;
    flex: 0 0 46%;
    min-height: 0;
}

.flip-cover-copy,
.flip-back-copy {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.flip-logo {
    width: min(58%, 180px);
    height: auto;
    align-self: flex-start;
    background: #fff;
    border-radius: 8px;
    padding: 0.35rem;
}

.flip-stats,
.flip-services,
.flip-clients,
.flip-toc,
.flip-strengths {
    display: grid;
    gap: 0.4rem;
    flex: 1;
    align-content: stretch;
}

.flip-toc { grid-auto-rows: 1fr; }

.flip-stats { grid-template-columns: 1fr 1fr; }
.flip-services { grid-template-columns: 1fr 1fr; }
.flip-clients { grid-template-columns: 1fr 1fr; }
.flip-strengths { grid-template-columns: 1fr 1fr; }
.flip-toc { grid-template-columns: 1fr; }

.flip-stat,
.flip-service,
.flip-client,
.flip-toc button,
.flip-strength {
    background: #fff;
    border: 1px solid rgba(28, 33, 86, 0.08);
    border-radius: 8px;
    padding: 0.4rem 0.45rem;
}

.flip-stat strong {
    display: block;
    font-family: var(--font-display, "Roboto Slab", serif);
    font-size: 1.15rem;
    color: #c8222a;
}

.flip-service,
.flip-client {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.flip-service img,
.flip-client img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.flip-client img { width: 42px; height: 28px; }

.flip-toc button {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.flip-toc button:hover { border-color: #c8222a; }

.flip-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    min-height: 0;
}

.flip-split .flip-photo { height: 100%; min-height: 88px; }

.flip-quote {
    font-family: var(--font-display, "Roboto Slab", serif);
    font-size: 0.95rem;
    line-height: 1.3;
}

.flip-contact a { color: #1c2156; }

.flip-turner {
    position: absolute;
    top: 0;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 4;
    pointer-events: none;
}

.flip-turner.is-forward {
    left: 50%;
    transform-origin: left center;
}

.flip-book.is-single .flip-turner.is-forward {
    left: 0;
    width: 100%;
}

.flip-turner.is-back {
    left: 0;
    transform-origin: right center;
}

.flip-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    backface-visibility: hidden;
    background: #f7f4ee;
}

.flip-face-back { transform: rotateY(180deg); }

.flip-turner.is-turned.is-forward { transform: rotateY(-180deg); }
.flip-turner.is-turned.is-back { transform: rotateY(180deg); }

.flip-turner.is-animating {
    transition: transform 0.72s ease;
}

.flip-hotspots {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 5;
    pointer-events: none;
}

.flip-hotspots button {
    flex: 0 0 16%;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.flip-hotspots button[data-flip="next"] {
    margin-left: auto;
}

@media (max-width: 859px) {
    .profile-toolbar { flex-direction: column; align-items: flex-start; }
    .profile-controls { justify-content: flex-start; }
    .flip-page p, .flip-page li { font-size: 0.78rem; }
    .flip-book,
    .flip-book.is-single {
        width: 100%;
        height: min(78vh, 640px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flip-turner.is-animating { transition: none; }
}
