.top { top: 0; }
.top.solid {
    background: rgba(18, 11, 7, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
}
.drawer nav a[aria-current="page"] {
    color: var(--gold-hi);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}
@media (prefers-reduced-motion: reduce) {
    #main { animation: none; }
    .top { transition: none; }
}
#main:focus { outline: none; }

.langs a[aria-current="true"] { color: var(--gold-hi); font-weight: 500; }
.langs a { white-space: nowrap; }
.language-check { color: var(--gold-hi); font-size: .85em; }

.brand { flex-shrink: 0; }
.brand-logo { display: block; width: 90px; height: 50px; object-fit: contain; }
.foot .brand-logo { width: 90px; height: 50px; }


.ribbon-second-line{display:inline}
@media(max-width:760px){.ribbon-second-line{display:block;margin-top:2px}.ribbon{line-height:1.5}}

.ribbon-second-line::before{content:" · "}@media(max-width:760px){.ribbon-second-line::before{content:none}}

@media(max-width:1080px){
 .fab{display:none!important}
 #top .wrap{gap:12px}
 #top .top-r{gap:10px}
 #top .top-r>.btn{display:inline-flex;min-height:42px;padding:0 16px;font-size:14px;white-space:nowrap}
}

/* Keep the new portrait photographs on the existing 3D carousel. */
#p-le-bar .ring {
    width: 260px;
    height: 400px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
#p-le-bar .ring figure {
    display: flex;
    flex-direction: column;
}
#p-le-bar .ring--photos figure img {
    flex: 1 1 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

/* The touch driver controls the same 3D transforms as desktop. */
@media (max-width: 760px), (pointer: coarse) {
    #p-le-bar .ring-stage {
        position: relative;
        overflow: hidden;
        min-width: 0;
        max-width: 100%;
        touch-action: auto;
    }
    #p-le-bar .ring {
        transform: var(--ring-transform, translateZ(0));
        will-change: transform;
        pointer-events: none;
    }
    #p-le-bar .ring figure {
        transform: var(--card-transform, translateZ(0));
    }
    #p-le-bar .ring-touch-driver {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }
    #p-le-bar .ring-touch-driver::-webkit-scrollbar {
        display: none;
    }
    #p-le-bar .ring-touch-driver > span {
        flex: 0 0 100%;
        height: 100%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

@media (max-width: 520px) {
    #p-le-bar .ring { width: 220px; height: 350px; }
    #p-le-bar .ring-stage { height: 440px; }
}

/* One continuous Vercel-style 3D scene, shared by desktop and touch. */
#p-le-bar .ring-stage{position:relative;max-width:100%;min-width:0;overflow:hidden;perspective:1600px;touch-action:pan-y!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}
#p-le-bar .ring-stage:active{cursor:grabbing}
#p-le-bar .ring{display:block;position:relative;width:260px;height:400px;padding:0;transform:var(--ring-transform,translateZ(0))!important;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;will-change:transform;pointer-events:auto}
#p-le-bar .ring figure{position:absolute;inset:0;width:auto;height:auto;margin:0;transform:var(--card-transform)!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;pointer-events:none}
#p-le-bar .ring figure img{display:block;flex:1 1 100%;width:100%;height:100%;min-height:0;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
#p-le-bar .ring-touch-driver{display:none!important}
@media(max-width:520px){#p-le-bar .ring{width:220px;height:350px}#p-le-bar .ring-stage{height:440px}}
