@font-face {
    font-family: 'SWS Cormorant';
    src: url('../assets/one-music/fonts/cormorant-garamond-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SWS Folio Icons';
    src: url('../assets/one-music/fonts/fontawesome-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* Kept route-scoped so the existing Work and customer screens retain their styles. */
body.sws-site--sonar-services {
    --folio-paper: #f3efe6;
    --folio-ink: #171715;
    --folio-accent: #b71348;
    background: #131413;
    color: var(--folio-paper);
}

.sws-site--sonar-services .sws-header {
    background: var(--folio-paper);
    border-bottom: 1px solid #ded9cf;
    height: 86px;
    position: relative;
}

.sws-site--sonar-services .sws-header__inner {
    height: 86px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0 38px;
    gap: 28px;
}

.sws-site--sonar-services .sws-brand { color: var(--folio-ink); }
.sws-site--sonar-services .sws-brand__text { font-size: 18px; letter-spacing: 3px; }
.sws-site--sonar-services .sws-brand__mark { gap: 3px; }
.sws-site--sonar-services .sws-brand__bar { width: 3px; }
.sws-site--sonar-services .sws-menu-toggle { display: none; }
.sws-site--sonar-services .sws-header-actions { order: 3; margin-left: 0; }
.sws-site--sonar-services .sws-header-actions:empty { display: none; }

.sws-site--sonar-services .sws-nav {
    display: flex;
    align-items: center;
    flex-direction: row;
    position: static;
    width: auto;
    margin-left: auto;
    padding: 0;
    gap: 30px;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.sws-site--sonar-services .sws-nav .sws-nav__link {
    font-size: 11px;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    color: var(--folio-ink);
    white-space: nowrap;
    min-height: 44px;
    align-self: center;
}

.sws-site--sonar-services .sws-nav__link--active::after { bottom: 1px; height: 2px; }
.sws-site--sonar-services .sws-nav .sws-nav__link:hover { color: var(--folio-accent); }
.sws-site--sonar-services .sws-nav .sws-admin-link,
.sws-site--sonar-services .sws-header-user,
.sws-site--sonar-services .sws-notification {
    border-color: #77766f;
    color: var(--folio-ink);
    background: transparent;
}
.sws-site--sonar-services .sws-nav .sws-admin-link { padding: 0; width: 36px; min-height: 36px; justify-content: center; border-radius: 50%; }
.sws-site--sonar-services .sws-admin-link > span { display: none; }
.sws-site--sonar-services .sws-admin-link:hover { color: var(--folio-accent); border-color: var(--folio-accent); }
.sws-site--sonar-services .sws-sonar-page { background: #131413; color: var(--folio-paper); }
.sws-site--sonar-services .sws-flash-region { top: 90px; }
.sws-site--sonar-services :is(a, button, summary):focus-visible { outline: 2px solid var(--sws-pink); outline-offset: 5px; }

.sws-folio-stage {
    max-width: 1120px;
    margin: 0 auto;
    min-height: calc(100svh - 86px);
    padding: 34px 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sws-folio-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 0 4px 28px;
}

.sws-folio-heading h1,
.sws-folio-heading > span {
    font: 400 10px/1.6 'SWS Raleway', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    color: #cfcdc5;
}
.sws-folio-heading > span { color: #999a92; letter-spacing: 1px; }
.sws-folio-admin { border: 0; background: none; color: var(--folio-paper); text-decoration: underline; cursor: pointer; padding: 10px; }

.sws-folio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: start;
    isolation: isolate;
}

.sws-folio-stack {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    min-width: 0;
    perspective: 1800px;
    z-index: 2;
}

.sws-folio-stack::before,
.sws-folio-stack::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #dfdace;
    border: 1px solid #bbb5a9;
    border-radius: 5px 6px 7px 15px;
    transform: translate(9px, 11px);
    z-index: -1;
    pointer-events: none;
}
.sws-folio-stack::before {
    transform: translate(17px, 21px);
    background: #cac5b9;
    box-shadow: 0 5px 0 -1px #a7a397, 0 9px 0 -2px #dfd9ca;
}

.sws-folio-page {
    display: grid;
    grid-template-columns: 52% 48%;
    background: var(--folio-paper);
    color: var(--folio-ink);
    min-height: 630px;
    margin-bottom: 40px;
    border: 1px solid #e7e1d5;
    border-radius: 5px;
    overflow: clip;
    transform-origin: 5% 90%;
    backface-visibility: hidden;
}

.sws-folio.is-enhanced .sws-folio-page {
    margin-bottom: 0;
    min-height: 0;
    height: clamp(580px, calc(100svh - 252px), 740px);
}
.sws-folio-page[hidden] { display: none; }
.sws-folio.is-enhanced .sws-folio-ghost { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.sws-folio:is(.is-turning, .is-dragging, .is-settling) .sws-folio-page { will-change: transform, opacity; }
.sws-folio:is(.is-turning, .is-dragging, .is-settling) .sws-folio-photo img { transition: none; will-change: transform; }
.sws-folio.is-enhanced .sws-folio-page { cursor: grab; touch-action: pan-y pinch-zoom; }
.sws-folio.is-dragging .sws-folio-page { cursor: grabbing; user-select: none; }

.sws-folio-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: clamp(44px, 6vh, 72px) 38px 49px;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.sws-folio-index {
    font-size: 11px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    margin-bottom: clamp(28px, 6vh, 65px);
    color: #777267;
}
.sws-folio-index > span { color: var(--folio-accent); }

.sws-site .sws-folio-copy h2 {
    font: 400 clamp(54px, 6vw, 90px)/0.97 'SWS Cormorant', Georgia, serif;
    font-variant-caps: small-caps;
    letter-spacing: -2px;
    overflow-wrap: anywhere;
    margin: 0 0 32px -3px;
    text-transform: none;
}

.sws-folio-summary {
    font: 400 clamp(20px, 1.75vw, 26px)/1.32 'SWS Cormorant', Georgia, serif;
    max-width: 24ch;
    margin-bottom: 22px;
}
.sws-folio-details { max-width: 34ch; margin-bottom: 30px; }
.sws-folio-details summary { font-size: 11px; letter-spacing: .4px; color: #736d63; cursor: pointer; padding: 8px 0; }
.sws-folio-details p { font-size: 12px; line-height: 1.75; color: #676158; padding-top: 12px; margin-bottom: 0; }
.sws-folio-details[open] summary { color: var(--folio-accent); }
.sws-folio-actions { display: flex; gap: 18px; flex-direction: column; align-items: flex-start; margin-top: auto; padding-top: 22px; }
.sws-folio-start {
    color: var(--folio-accent);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 12px 0;
    position: relative;
}
.sws-folio-start::after { content: ''; height: 1px; background: currentColor; position: absolute; left: 0; right: 0; bottom: 5px; transform-origin: left; transition: transform 250ms ease; }
.sws-folio-start:hover::after { transform: scaleX(.65); }
.sws-folio-edit { color: #696257; padding: 8px 0; font-size: 11px !important; background: none; border: 0; cursor: pointer; text-decoration: underline; }

.sws-folio-photo { margin: 0; min-width: 0; overflow: hidden; background: #3e3e38; position: relative; }
.sws-folio-photo img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) sepia(.16);
    transition: transform var(--sws-motion-slow, 420ms) var(--sws-ease, cubic-bezier(.22,.68,0,1.01));
}
@media (hover: hover) {
    .sws-folio:not(.is-turning):not(.is-dragging):not(.is-settling) .sws-folio-photo:hover img { transform: scale(1.025); }
}

.sws-folio-tabs {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 34px;
    position: relative;
    z-index: 3;
    min-width: 0;
    max-height: calc(100% - 8px);
    overflow-y: auto;
    overflow-x: clip;
    scrollbar-width: thin;
    scrollbar-color: #898477 transparent;
    width: calc(100% + 10px);
    padding-right: 10px;
    margin-right: -10px;
}
.sws-folio:not(.is-enhanced) .sws-folio-tabs { position: sticky; top: 15px; }
.sws-folio-tab {
    background: #dfdbd1;
    color: #39382f;
    min-height: 65px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px 12px 12px;
    border: 1px solid #c2bdb1;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    line-height: 1.5;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform var(--sws-motion-base, 260ms) var(--sws-ease, cubic-bezier(.22,.68,0,1.01)), background-color var(--sws-motion-fast, 160ms), color var(--sws-motion-fast, 160ms);
}
.sws-folio-tab__number { color: #787369; font-size: 8px; font-variant-numeric: tabular-nums; font-weight: 400; }
.sws-folio-tab:hover { transform: translateX(7px); background: var(--folio-paper); }
.sws-folio-tab[aria-selected='true'] { background: var(--folio-accent); border-color: var(--folio-accent); color: #fff8ee; transform: translateX(7px); }
.sws-folio-tab[aria-selected='true'] .sws-folio-tab__number { color: #eed2db; }
.sws-folio-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 46px; padding-right: 120px; }
.sws-folio-bottom[hidden] { display: none; }
.sws-folio-hint { font-size: 10px; letter-spacing: .7px; color: #acaca3; }
.sws-folio-pagination { display: flex; align-items: center; gap: 18px; }
.sws-folio-pagination > span { font-size: 10px; letter-spacing: 2px; color: #d5d2c9; font-variant-numeric: tabular-nums; min-width: 58px; text-align: center; }
.sws-folio-pagination button { border: 1px solid #63635b; background: transparent; color: #dfdcd3; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: background 180ms, color 180ms; }
.sws-folio-pagination button:hover { background: var(--folio-paper); color: var(--folio-ink); }
.sws-folio-pagination button:disabled { opacity: .3; cursor: default; }
.sws-folio-icon { font-family: 'SWS Folio Icons'; font-style: normal; font-size: 14px; }
.sws-folio-icon--left::before { content: '\f104'; }
.sws-folio-icon--right::before { content: '\f105'; }

.sws-site--sonar-services .sws-footer { background: #131413; border-top: 1px solid #2a2b26; color: #a6a69e; }
.sws-site--sonar-services .sws-footer__brand { color: #ddd9ce; }
.sws-site--sonar-services .sws-footer__content { padding-block: 24px; }
.sws-site--sonar-services .sws-footer__copyright,
.sws-site--sonar-services .sws-footer__detail { color: #a6a69e; }

@media (max-width: 1100px) {
    .sws-site--sonar-services .sws-header__inner { padding-inline: 24px; gap: 16px; }
    .sws-site--sonar-services .sws-brand__text { font-size: 14px; letter-spacing: 2px; }
    .sws-site--sonar-services .sws-nav { gap: 20px; }
    .sws-folio-stage { padding-inline: 30px; }
    .sws-folio-copy { padding-inline: 26px; }
    .sws-site .sws-folio-copy h2 { font-size: clamp(48px, 6.4vw, 76px); }
}

@media (max-width: 1100px) {
    .sws-site--sonar-services .sws-header,
    .sws-site--sonar-services .sws-header__inner { height: 76px; }
    .sws-site--sonar-services .sws-menu-toggle { display: flex; border-color: #99958a; }
    .sws-site--sonar-services .sws-menu-toggle__line { background: var(--folio-ink); }
    .sws-site--sonar-services .sws-header-actions { margin-left: auto; }
    .sws-site--sonar-services .sws-nav {
        display: none;
        position: absolute;
        inset: 76px 0 auto;
        width: 100%;
        padding: 16px 24px 24px;
        background: var(--folio-paper);
        border-bottom: 1px solid #c8c3b8;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 0;
    }
    .sws-site--sonar-services .sws-nav.sws-nav--open { display: flex; }
    .sws-site--sonar-services .sws-nav .sws-nav__link { align-self: stretch; }
    .sws-site--sonar-services .sws-nav__link--active::after { display: none; }
    .sws-folio-stage { min-height: calc(100svh - 76px); }
    .sws-folio-heading > span { display: none; }
    .sws-folio { grid-template-columns: minmax(0, 1fr) 100px; }
    .sws-folio-tab { font-size: 10px; padding-left: 10px; gap: 6px; letter-spacing: .4px; }
    .sws-folio-bottom { padding-right: 100px; }
    .sws-site .sws-folio-copy h2 { font-size: 56px; }
}

@media (max-width: 640px) {
    .sws-site--sonar-services .sws-header__inner { padding-inline: 18px; }
    .sws-site--sonar-services .sws-brand { gap: 11px; }
    .sws-site--sonar-services .sws-brand__text { font-size: 11px; letter-spacing: 1.5px; }
    .sws-site--sonar-services .sws-brand__mark { transform: scale(.8); width: 33px; transform-origin: left center; }
    .sws-site--sonar-services .sws-header-user__name { display: none; }
    .sws-folio-stage { padding: 25px 22px 32px; justify-content: flex-start; }
    .sws-folio-heading { padding: 0 0 19px; }
    .sws-folio-heading h1 { font-size: 9px; letter-spacing: 1.7px; }
    .sws-folio { display: flex; flex-direction: column; gap: 0; }
    .sws-folio-stack { width: 100%; order: 2; }
    .sws-folio-stack::before { transform: translate(7px, 10px); box-shadow: 0 5px 0 -1px #a7a397; }
    .sws-folio-stack::after { transform: translate(3px, 5px); }
    .sws-folio-tabs,
    .sws-folio:not(.is-enhanced) .sws-folio-tabs {
        position: static;
        order: 1;
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        gap: 3px;
        padding-top: 0;
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 10px;
        margin-bottom: 4px;
    }
    .sws-folio-tabs::-webkit-scrollbar { display: none; }
    .sws-folio-tab { flex: 0 0 auto; min-height: 45px; border: 1px solid #b9b2a6; border-radius: 4px 4px 0 0; font-size: 11px; padding: 11px 14px; gap: 7px; white-space: nowrap; }
    .sws-folio-tab:hover,
    .sws-folio-tab[aria-selected='true'] { transform: none; }
    .sws-folio-page,
    .sws-folio.is-enhanced .sws-folio-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 240px; height: auto; min-height: 0; }
    .sws-folio-copy { min-height: 340px; padding: 27px 25px 26px; overflow: visible; }
    .sws-folio-index { font-size: 10px; margin-bottom: 23px; }
    .sws-site .sws-folio-copy h2 { font-size: 62px; letter-spacing: -1.5px; margin-bottom: 14px; }
    .sws-folio-summary { font-size: 24px; line-height: 1.2; margin-bottom: 10px; max-width: 24ch; }
    .sws-folio-details { margin-bottom: 10px; }
    .sws-folio-actions { padding-top: 12px; }
    .sws-folio-photo img { object-position: center 38%; }
    .sws-folio-bottom { margin-top: 32px; padding-right: 0; gap: 12px; }
    .sws-folio-hint { max-width: 130px; font-size: 9px; }
    .sws-folio-pagination { gap: 10px; }
    .sws-folio-pagination button { width: 44px; height: 44px; }
    .sws-site--sonar-services .sws-footer__details { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .sws-folio *, .sws-folio *::after, .sws-folio-pagination button { transition: none !important; animation: none !important; }
    .sws-folio .sws-folio-photo:hover img { transform: none !important; }
}
