/* ==========================================================
   KORNET EXPRESS — ORGANIZATION PAGE
   Public organization showcase, directories, profile cards,
   and mobile QR-profile preview.
========================================================== */

:root {
    --org-navy: #092d60;
    --org-navy-dark: #061f45;
    --org-blue: #0a5ba8;
    --org-red: #c1121f;
    --org-red-dark: #9f0d18;
    --org-brown: #826c6c;
    --org-ink: #111827;
    --org-muted: #667085;
    --org-line: rgba(15, 45, 86, 0.13);
    --org-surface: rgba(255, 255, 255, 0.9);
    --org-shadow: 0 30px 80px rgba(6, 31, 69, 0.16);
    --org-transition: 620ms cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================
   PAGE FOUNDATION
========================================================== */

body.organization-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(10, 91, 168, 0.08), transparent 32%),
        radial-gradient(circle at 88% 25%, rgba(193, 18, 31, 0.07), transparent 30%),
        #f7f9fc;
    color: var(--org-ink);
}

body.organization-overlay-open {
    overflow: hidden;
}

.organization-wrapper {
    margin-bottom: 0;
}

.organization-main {
    flex: 1;
    padding-top: 92px;
}

.organization-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 118px) 0 72px;
}

.organization-hero::before,
.organization-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
}

.organization-hero::before {
    width: 460px;
    height: 460px;
    top: 3%;
    left: -260px;
    border: 1px solid rgba(10, 91, 168, 0.12);
    box-shadow:
        0 0 0 70px rgba(10, 91, 168, 0.025),
        0 0 0 140px rgba(10, 91, 168, 0.018);
}

.organization-hero::after {
    width: 350px;
    height: 350px;
    right: -190px;
    bottom: 5%;
    border: 1px solid rgba(193, 18, 31, 0.12);
    box-shadow:
        0 0 0 60px rgba(193, 18, 31, 0.025),
        0 0 0 120px rgba(193, 18, 31, 0.018);
}

.organization-hero__inner {
    position: relative;
    z-index: 1;
}

.organization-heading {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.organization-eyebrow,
.directory-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--org-red);
    font-family: "Codec Cold", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.organization-eyebrow::before,
.organization-eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.organization-heading h1 {
    margin: 18px 0 16px;
    color: var(--org-navy-dark);
    font-family: "Codec Cold", sans-serif;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.organization-heading p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--org-muted);
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.75;
}

/* ==========================================================
   THREE-CARD ORGANIZATION SHOWCASE
========================================================== */

.organization-stage {
    --card-shift: clamp(250px, 31vw, 430px);
    position: relative;
    min-height: clamp(500px, 47vw, 620px);
    display: grid;
    place-items: center;
    perspective: 1700px;
}

.organization-carousel {
    position: relative;
    width: 100%;
    height: clamp(470px, 44vw, 585px);
}

.organization-gateway {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(760px, 65vw);
    height: clamp(460px, 42vw, 560px);
    padding: 0;
    overflow: hidden;
    text-align: left;
    color: #fff;
    background: var(--org-navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    box-shadow: var(--org-shadow);
    cursor: pointer;
    transform-style: preserve-3d;
    transition:
        transform var(--org-transition),
        opacity 420ms ease,
        filter 420ms ease,
        box-shadow 420ms ease,
        border-color 420ms ease;
}

.organization-gateway:focus-visible {
    outline: 4px solid rgba(193, 18, 31, 0.28);
    outline-offset: 7px;
}

.organization-gateway.is-active {
    z-index: 3;
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: translateX(-50%) translateY(0) scale(1) rotateY(0deg);
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow:
        0 42px 90px rgba(6, 31, 69, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.organization-gateway.is-previous {
    z-index: 1;
    opacity: 0.68;
    filter: brightness(0.58) saturate(0.78);
    transform:
        translateX(calc(-50% - var(--card-shift)))
        translateY(34px)
        scale(0.82)
        rotateY(9deg);
}

.organization-gateway.is-next {
    z-index: 2;
    opacity: 0.68;
    filter: brightness(0.58) saturate(0.78);
    transform:
        translateX(calc(-50% + var(--card-shift)))
        translateY(34px)
        scale(0.82)
        rotateY(-9deg);
}

.organization-gateway.is-previous:hover,
.organization-gateway.is-next:hover {
    opacity: 0.84;
    filter: brightness(0.72) saturate(0.9);
}

.organization-gateway__media,
.organization-gateway__shade {
    position: absolute;
    inset: 0;
}

.organization-gateway__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.015);
    transition: transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.organization-gateway.is-active:hover .organization-gateway__media img {
    transform: scale(1.06);
}

.organization-gateway__shade {
    background:
        linear-gradient(180deg, rgba(2, 16, 37, 0.08) 0%, rgba(2, 16, 37, 0.2) 42%, rgba(2, 16, 37, 0.94) 100%),
        linear-gradient(90deg, rgba(2, 16, 37, 0.18), transparent 65%);
}

.organization-gateway__media--management {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 22%),
        linear-gradient(145deg, #0b3974, #061f45 70%);
}

.organization-gateway__media--people {
    background:
        radial-gradient(circle at 80% 15%, rgba(193, 18, 31, 0.3), transparent 28%),
        linear-gradient(145deg, #113f78, #061f45 74%);
}

.organization-gateway__content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(30px, 4vw, 52px);
}

.organization-gateway__number {
    position: absolute;
    right: clamp(28px, 4vw, 48px);
    bottom: clamp(30px, 4vw, 46px);
    color: rgba(255, 255, 255, 0.12);
    font-family: "Codec Cold", sans-serif;
    font-size: clamp(76px, 10vw, 130px);
    font-weight: 800;
    line-height: 0.75;
}

.organization-gateway__label {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.organization-gateway__content strong {
    max-width: 560px;
    font-family: "Codec Cold", sans-serif;
    font-size: clamp(31px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.organization-gateway__description {
    max-width: 520px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.65;
}

.organization-gateway__action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 12px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
    transition: background 220ms ease, transform 220ms ease;
}

.organization-gateway.is-active:hover .organization-gateway__action {
    background: var(--org-red);
    transform: translateX(4px);
}

.gateway-people-preview {
    position: absolute;
    inset: 56px 54px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.gateway-person {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(145px, 18vw, 210px);
    aspect-ratio: 0.78;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.23);
    font-family: "Codec Cold", sans-serif;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 800;
    backdrop-filter: blur(13px);
}

.gateway-person--one {
    transform: translateX(28px) rotate(-8deg) scale(0.82);
    opacity: 0.64;
}

.gateway-person--two {
    z-index: 2;
    background: linear-gradient(160deg, rgba(193, 18, 31, 0.92), rgba(116, 7, 16, 0.88));
}

.gateway-person--three {
    transform: translateX(-28px) rotate(8deg) scale(0.82);
    opacity: 0.64;
}

.gateway-department-preview {
    position: absolute;
    inset: 54px 52px auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gateway-department-preview span {
    display: grid;
    place-items: center;
    min-height: 104px;
    padding: 18px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.organization-arrow {
    position: absolute;
    z-index: 8;
    top: 44%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--org-navy);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(9, 45, 96, 0.13);
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(6, 31, 69, 0.13);
    backdrop-filter: blur(14px);
    cursor: pointer;
    transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.organization-arrow span {
    margin-top: -4px;
    font-size: 34px;
    line-height: 1;
}

.organization-arrow:hover {
    color: #fff;
    background: var(--org-red);
    transform: translateY(-3px);
}

.organization-arrow:focus-visible {
    outline: 3px solid rgba(193, 18, 31, 0.28);
    outline-offset: 4px;
}

.organization-arrow--previous {
    left: 0;
}

.organization-arrow--next {
    right: 0;
}

.organization-carousel__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: -8px;
    text-align: center;
}

.organization-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.organization-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(9, 45, 96, 0.2);
    border: 0;
    border-radius: 99px;
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease;
}

.organization-dots button.is-active {
    width: 34px;
    background: var(--org-red);
}

.organization-carousel__footer p {
    max-width: 600px;
    color: var(--org-muted);
    font-size: 14px;
}

/* ==========================================================
   PAGE HIGHLIGHTS
========================================================== */

.organization-intro {
    padding: 0 0 clamp(80px, 9vw, 125px);
}

.organization-intro__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.organization-intro article {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(9, 45, 96, 0.08);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(6, 31, 69, 0.06);
    backdrop-filter: blur(12px);
}

.organization-intro article > span {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    color: #fff;
    background: var(--org-navy);
    border-radius: 13px;
    font-family: "Codec Cold", sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.organization-intro h2 {
    margin: 1px 0 6px;
    color: var(--org-navy-dark);
    font-family: "Codec Cold", sans-serif;
    font-size: 18px;
}

.organization-intro p {
    color: var(--org-muted);
    font-size: 14px;
    line-height: 1.65;
}

.organization-footer {
    margin-top: auto;
    background: #0b1220;
}

/* ==========================================================
   PUBLIC ORGANIZATION WORKSPACE
========================================================== */

.organization-workspace,
.mobile-profile-preview {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: clamp(12px, 2vw, 28px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 240ms ease;
}

.organization-workspace[hidden],
.mobile-profile-preview[hidden] {
    display: none;
}

.organization-workspace.is-open,
.mobile-profile-preview.is-open {
    opacity: 1;
    visibility: visible;
}

.organization-workspace__backdrop,
.mobile-profile-preview__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(3, 14, 31, 0.78);
    border: 0;
    backdrop-filter: blur(14px);
    cursor: default;
}

.organization-workspace__dialog {
    position: relative;
    z-index: 1;
    width: min(1480px, 100%);
    height: min(900px, calc(100vh - 40px));
    overflow: hidden;
    background: #f6f8fb;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 30px;
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.34);
    transform: translateY(24px) scale(0.985);
    transition: transform 340ms cubic-bezier(.22, 1, .36, 1);
}

.organization-workspace.is-open .organization-workspace__dialog {
    transform: translateY(0) scale(1);
}

.organization-workspace__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 142px;
    padding: 30px 34px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.12), transparent 32%),
        linear-gradient(120deg, var(--org-navy-dark), #123f78);
}

.organization-workspace__head h2 {
    margin: 4px 0 5px;
    font-family: "Codec Cold", sans-serif;
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.1;
}

.organization-workspace__head p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.organization-workspace__kicker {
    color: #9bc0ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.organization-workspace__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.organization-workspace__status {
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.organization-workspace__close,
.mobile-profile-preview__close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0 0 3px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform 200ms ease, background 200ms ease;
}

.organization-workspace__close:hover,
.mobile-profile-preview__close:hover {
    background: var(--org-red);
    transform: rotate(5deg) scale(1.05);
}

.organization-workspace__body {
    position: relative;
    height: calc(100% - 142px);
    overflow: auto;
    overscroll-behavior: contain;
}

.organization-view {
    min-height: 100%;
    padding: clamp(22px, 3vw, 38px);
}

.organization-loading {
    min-height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    padding: 40px;
    text-align: center;
}

.organization-loading__ring {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border: 4px solid rgba(9, 45, 96, 0.12);
    border-top-color: var(--org-red);
    border-radius: 50%;
    animation: organizationSpin 900ms linear infinite;
}

.organization-loading strong {
    color: var(--org-navy-dark);
    font-family: "Codec Cold", sans-serif;
    font-size: 22px;
}

.organization-loading p {
    color: var(--org-muted);
}

@keyframes organizationSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================
   CHART VIEW
========================================================== */

.chart-toolbar,
.directory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.chart-toolbar > div:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.chart-status {
    padding: 7px 12px;
    color: #14723e;
    background: #e9f8ef;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.chart-toolbar strong {
    color: var(--org-navy-dark);
}

.chart-toolbar span:not(.chart-status) {
    color: var(--org-muted);
    font-size: 14px;
}

.chart-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-toolbar__actions button,
.chart-toolbar__actions a,
.directory-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    color: var(--org-navy);
    background: #fff;
    border: 1px solid rgba(9, 45, 96, 0.13);
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(6, 31, 69, 0.05);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 200ms ease, color 200ms ease, border-color 200ms ease;
}

.chart-toolbar__actions button:hover,
.chart-toolbar__actions a:hover,
.directory-back:hover {
    color: var(--org-red);
    border-color: rgba(193, 18, 31, 0.32);
    transform: translateY(-2px);
}

.organization-chart-viewer {
    width: 100%;
    height: calc(100vh - 300px);
    min-height: 480px;
    overflow: auto;
    padding: 18px;
    background:
        linear-gradient(rgba(9, 45, 96, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 45, 96, 0.035) 1px, transparent 1px),
        #e9edf3;
    background-size: 24px 24px;
    border: 1px solid rgba(9, 45, 96, 0.1);
    border-radius: 20px;
    overscroll-behavior: contain;
}

.organization-chart-viewer img {
    display: block;
    width: 100%;
    min-width: 860px;
    height: auto;
    margin: 0 auto;
    border-radius: 13px;
    box-shadow: 0 15px 40px rgba(6, 31, 69, 0.12);
    transition: transform 220ms ease;
}

/* ==========================================================
   DIRECTORIES
========================================================== */

.directory-toolbar > div:first-child {
    max-width: 700px;
}

.directory-toolbar h3 {
    margin: 6px 0 4px;
    color: var(--org-navy-dark);
    font-family: "Codec Cold", sans-serif;
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1.1;
}

.directory-toolbar p {
    color: var(--org-muted);
    font-size: 14px;
}

.directory-search {
    flex: 0 1 410px;
}

.directory-search input {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px 12px 46px;
    color: var(--org-ink);
    background:
        linear-gradient(90deg, transparent 0 42px, rgba(9, 45, 96, 0.08) 42px 43px, transparent 43px),
        #fff;
    border: 1px solid rgba(9, 45, 96, 0.13);
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(6, 31, 69, 0.06);
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.directory-search {
    position: relative;
}

.directory-search::before {
    content: "⌕";
    position: absolute;
    z-index: 1;
    left: 17px;
    top: 50%;
    color: var(--org-navy);
    font-size: 22px;
    transform: translateY(-52%);
}

.directory-search input:focus {
    border-color: rgba(10, 91, 168, 0.48);
    box-shadow: 0 0 0 4px rgba(10, 91, 168, 0.09);
}

.directory-back {
    margin-bottom: 18px;
    gap: 8px;
}

.person-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.person-mini-card {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 116px;
    padding: 16px 19px;
    overflow: hidden;
    text-align: left;
    color: var(--org-ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.92));
    border: 1px solid rgba(9, 45, 96, 0.11);
    border-radius: 19px;
    box-shadow: 0 14px 30px rgba(6, 31, 69, 0.07);
    cursor: pointer;
    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.person-mini-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--org-red), var(--org-navy));
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 240ms ease;
}

.person-mini-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 91, 168, 0.28);
    box-shadow: 0 22px 46px rgba(6, 31, 69, 0.13);
}

.person-mini-card:hover::before {
    transform: scaleY(1);
}

.person-mini-card:focus-visible,
.department-card:focus-visible {
    outline: 3px solid rgba(10, 91, 168, 0.25);
    outline-offset: 4px;
}

.person-mini-card__photo {
    position: relative;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(145deg, var(--org-blue), var(--org-navy-dark));
    border: 3px solid #fff;
    border-radius: 16px;
    box-shadow: 0 9px 20px rgba(6, 31, 69, 0.16);
    font-family: "Codec Cold", sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.person-mini-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-mini-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.person-mini-card__content small {
    margin-bottom: 4px;
    color: var(--org-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.person-mini-card__content strong {
    overflow: hidden;
    color: var(--org-navy-dark);
    font-family: "Codec Cold", sans-serif;
    font-size: 19px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-mini-card__content > span {
    margin-top: 3px;
    color: var(--org-ink);
    font-size: 14px;
    font-weight: 700;
}

.person-mini-card__content em {
    margin-top: 4px;
    overflow: hidden;
    color: var(--org-muted);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-mini-card__arrow,
.department-card__arrow {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    color: var(--org-navy);
    background: rgba(10, 91, 168, 0.07);
    border-radius: 50%;
    transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.person-mini-card:hover .person-mini-card__arrow,
.department-card:hover .department-card__arrow {
    color: #fff;
    background: var(--org-red);
    transform: translateX(3px);
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.department-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 150px;
    padding: 22px;
    text-align: left;
    color: var(--org-ink);
    background: #fff;
    border: 1px solid rgba(9, 45, 96, 0.11);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(6, 31, 69, 0.065);
    cursor: pointer;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.department-card:hover {
    transform: translateY(-5px);
    border-color: rgba(193, 18, 31, 0.24);
    box-shadow: 0 22px 48px rgba(6, 31, 69, 0.12);
}

.department-card__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    color: #fff;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.22), transparent 25%),
        linear-gradient(145deg, var(--org-blue), var(--org-navy-dark));
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(6, 31, 69, 0.16);
    font-size: 27px;
}

.department-card:nth-child(2n) .department-card__icon {
    background: linear-gradient(145deg, var(--org-red), var(--org-red-dark));
}

.department-card__content {
    display: flex;
    flex-direction: column;
}

.department-card__content small {
    color: var(--org-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.department-card__content strong {
    margin: 4px 0 6px;
    color: var(--org-navy-dark);
    font-family: "Codec Cold", sans-serif;
    font-size: 21px;
    line-height: 1.15;
}

.department-card__content span {
    color: var(--org-muted);
    font-size: 13px;
    line-height: 1.55;
}

.organization-empty {
    min-height: 280px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 40px;
    text-align: center;
    color: var(--org-muted);
}

.organization-empty strong {
    margin-bottom: 6px;
    color: var(--org-navy-dark);
    font-family: "Codec Cold", sans-serif;
    font-size: 24px;
}

/* ==========================================================
   SHARED LANDSCAPE PROFILE
========================================================== */

.landscape-profile,
.portrait-profile {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 18%, rgba(10, 91, 168, 0.045), transparent 28%),
        linear-gradient(145deg, #fff, #fbfbfc);
    border: 1px solid rgba(9, 45, 96, 0.12);
    box-shadow: 0 28px 70px rgba(6, 31, 69, 0.14);
}

.landscape-profile {
    width: min(1250px, 100%);
    margin: 0 auto;
    padding: 32px 38px 28px 66px;
    border-radius: 27px;
}

.profile-stripes {
    position: absolute;
    inset: 0 auto 0 24px;
    width: 70px;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 0 4px,
            var(--org-red) 4px 12px,
            transparent 12px 23px,
            var(--org-navy) 23px 31px,
            transparent 31px 43px,
            var(--org-brown) 43px 51px,
            transparent 51px
        );
    opacity: 0.98;
}

.landscape-profile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding-left: 58px;
}

.landscape-profile__logo {
    width: min(365px, 38vw);
    height: auto;
}

.profile-department-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: min(350px, 38vw);
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(9, 45, 96, 0.14);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(6, 31, 69, 0.05);
}

.profile-department-badge__icon {
    display: grid;
    place-items: center;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    color: var(--org-navy);
    background: rgba(10, 91, 168, 0.07);
    border-radius: 50%;
    font-size: 22px;
}

.profile-department-badge > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-department-badge small {
    color: var(--org-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-department-badge strong {
    overflow: hidden;
    color: var(--org-navy);
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-department-badge em {
    color: #4b5563;
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landscape-profile__main {
    display: grid;
    grid-template-columns: minmax(245px, 315px) minmax(0, 1fr);
    gap: clamp(38px, 5vw, 72px);
    align-items: start;
    padding: 32px 15px 24px 58px;
}

.profile-photo-frame {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: rgba(9, 45, 96, 0.72);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(145deg, #eef2f7, #dce3ed);
    border: 1px solid rgba(9, 45, 96, 0.22);
    box-shadow: 0 16px 36px rgba(6, 31, 69, 0.1);
    font-family: "Codec Cold", sans-serif;
    font-weight: 800;
}

.landscape-profile .profile-photo-frame {
    width: 100%;
    aspect-ratio: 0.78;
    border-radius: 20px;
    font-size: clamp(55px, 7vw, 95px);
}

.profile-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landscape-profile__identity {
    min-width: 0;
}

.profile-type {
    display: inline-flex;
    padding: 7px 12px;
    color: var(--org-red);
    background: rgba(193, 18, 31, 0.065);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.landscape-profile__identity h3,
.portrait-profile__identity h2 {
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.landscape-profile__identity h3 {
    margin: 12px 0 4px;
    font-size: clamp(38px, 4.5vw, 62px);
    line-height: 1.06;
}

.profile-position {
    color: #151515;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
}

.profile-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    color: #303846;
    font-size: 17px;
}

.profile-code {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
    color: var(--org-muted);
    font-size: 12px;
}

.profile-code strong {
    color: var(--org-navy);
    letter-spacing: 0.08em;
}

.profile-sections,
.portrait-profile__sections {
    margin-top: 23px;
    border-top: 1px solid var(--org-line);
}

.profile-sections details,
.portrait-profile__sections details {
    border-bottom: 1px solid var(--org-line);
}

.profile-sections summary,
.portrait-profile__sections summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    color: var(--org-navy);
    list-style: none;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.profile-sections summary::-webkit-details-marker,
.portrait-profile__sections summary::-webkit-details-marker {
    display: none;
}

.profile-section-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 50%;
    font-size: 19px;
}

.profile-section-icon--blue {
    background: linear-gradient(145deg, var(--org-blue), var(--org-navy));
}

.profile-section-icon--red {
    background: linear-gradient(145deg, #e40c23, var(--org-red-dark));
}

.profile-section-icon--brown {
    background: linear-gradient(145deg, #9d8585, #6d5757);
}

.profile-section-arrow {
    font-size: 22px;
    transition: transform 200ms ease;
}

.profile-sections details[open] .profile-section-arrow {
    transform: rotate(180deg);
}

.profile-section-content {
    padding: 0 0 18px 56px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.75;
}

.profile-section-content ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tags span {
    padding: 7px 11px;
    color: var(--org-navy);
    background: rgba(10, 91, 168, 0.07);
    border: 1px solid rgba(10, 91, 168, 0.11);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.landscape-profile__contact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-left: 58px;
    overflow: hidden;
    border: 1px solid rgba(9, 45, 96, 0.13);
    border-radius: 17px;
}

.landscape-profile__contact > a,
.landscape-profile__contact > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 76px;
    padding: 13px 16px;
    color: var(--org-ink);
    background: rgba(255, 255, 255, 0.75);
    border: 0;
    border-right: 1px solid rgba(9, 45, 96, 0.12);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.landscape-profile__contact > *:last-child {
    border-right: 0;
}

.landscape-profile__contact > a:hover,
.landscape-profile__contact > button:hover {
    color: var(--org-red);
    background: rgba(193, 18, 31, 0.045);
}

.landscape-profile__contact > * > span:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--org-navy);
    border-radius: 50%;
    font-size: 17px;
}

.landscape-profile__contact > *:nth-child(3) > span:first-child,
.landscape-profile__contact > *:nth-child(4) > span:first-child {
    background: var(--org-brown);
}

.landscape-profile__contact > * > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.landscape-profile__contact small {
    color: var(--org-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landscape-profile__contact strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================
   PORTRAIT / MOBILE QR PROFILE PREVIEW
========================================================== */

.mobile-profile-preview {
    z-index: 6000;
    overflow-y: auto;
}

.mobile-profile-preview__dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    margin: auto;
    transform: translateY(18px) scale(0.98);
    transition: transform 300ms cubic-bezier(.22, 1, .36, 1);
}

.mobile-profile-preview.is-open .mobile-profile-preview__dialog {
    transform: translateY(0) scale(1);
}

.mobile-profile-preview__close {
    position: absolute;
    z-index: 4;
    top: 17px;
    right: 17px;
    color: var(--org-navy);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(9, 45, 96, 0.12);
    box-shadow: 0 8px 18px rgba(6, 31, 69, 0.1);
}

.portrait-profile {
    min-height: 820px;
    padding: 26px 30px 28px 68px;
    border-radius: 28px;
}

.portrait-profile .profile-stripes {
    left: 15px;
}

.portrait-profile__head {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portrait-profile__head > img {
    width: min(290px, 82%);
    height: auto;
}

.profile-department-badge--portrait {
    min-width: 0;
    width: 100%;
}

.portrait-profile__photo {
    width: 210px;
    aspect-ratio: 1;
    margin: 28px auto 22px;
    border-radius: 20px;
    font-size: 64px;
}

.portrait-profile__identity {
    text-align: center;
}

.portrait-profile__identity h2 {
    margin: 11px 0 4px;
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.08;
}

.portrait-profile__identity .profile-position {
    font-size: 26px;
}

.portrait-profile__identity .profile-location,
.portrait-profile__identity .profile-code {
    justify-content: center;
}

.portrait-profile__identity .profile-code {
    flex-direction: column;
    gap: 1px;
}

.portrait-profile__sections {
    margin-top: 24px;
    border: 0;
}

.portrait-profile__sections details {
    margin-bottom: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(9, 45, 96, 0.12);
    border-radius: 14px;
}

.portrait-profile__sections summary {
    min-height: 60px;
    padding: 8px 14px;
    font-size: 15px;
}

.portrait-profile__sections .profile-section-content {
    padding: 0 16px 16px 70px;
    font-size: 13px;
}

.portrait-profile__contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.portrait-profile__contact a {
    display: grid;
    place-items: center;
    min-height: 55px;
    color: #fff;
    background: var(--org-navy);
    border-radius: 15px;
    font-size: 22px;
    text-decoration: none;
    transition: transform 200ms ease, background 200ms ease;
}

.portrait-profile__contact a:nth-child(3) {
    background: var(--org-brown);
}

.portrait-profile__contact a:hover {
    background: var(--org-red);
    transform: translateY(-3px);
}

.portrait-profile__notice {
    margin-top: 18px;
    color: var(--org-muted);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

/* ==========================================================
   UTILITIES & ACCESSIBILITY
========================================================== */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

[hidden] {
    display: none !important;
}

/* ==========================================================
   RESPONSIVE — LAPTOP / TABLET
========================================================== */

@media (max-width: 1120px) {
    .organization-stage {
        --card-shift: clamp(190px, 29vw, 315px);
    }

    .organization-gateway {
        width: min(700px, 72vw);
    }

    .person-card-grid,
    .department-grid {
        grid-template-columns: 1fr;
    }

    .landscape-profile {
        padding-right: 28px;
    }

    .landscape-profile__main {
        grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
        gap: 34px;
    }

    .landscape-profile__contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landscape-profile__contact > *:nth-child(2) {
        border-right: 0;
    }

    .landscape-profile__contact > *:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(9, 45, 96, 0.12);
    }
}

@media (max-width: 900px) {
    .organization-main {
        padding-top: 82px;
    }

    .organization-stage {
        --card-shift: 52vw;
        min-height: 570px;
    }

    .organization-carousel {
        height: 540px;
    }

    .organization-gateway {
        width: min(680px, 84vw);
        height: 515px;
    }

    .organization-gateway.is-previous,
    .organization-gateway.is-next {
        opacity: 0.5;
        filter: brightness(0.48) saturate(0.7);
    }

    .organization-arrow {
        top: auto;
        bottom: 3px;
    }

    .organization-arrow--previous {
        left: calc(50% - 92px);
    }

    .organization-arrow--next {
        right: calc(50% - 92px);
    }

    .organization-carousel__footer {
        margin-top: 10px;
        padding-top: 55px;
    }

    .organization-intro__grid {
        grid-template-columns: 1fr;
    }

    .organization-workspace {
        padding: 0;
    }

    .organization-workspace__dialog {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .organization-workspace__head {
        min-height: 130px;
        padding: 24px;
    }

    .organization-workspace__body {
        height: calc(100% - 130px);
    }

    .organization-workspace__status {
        display: none;
    }

    .directory-toolbar,
    .chart-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .directory-search {
        flex-basis: auto;
        width: 100%;
    }

    .chart-toolbar__actions {
        flex-wrap: wrap;
    }

    .landscape-profile {
        padding: 26px 24px 26px 62px;
    }

    .landscape-profile__top {
        flex-direction: column;
        padding-left: 48px;
    }

    .landscape-profile__logo {
        width: min(330px, 72vw);
    }

    .profile-department-badge {
        width: 100%;
        min-width: 0;
    }

    .landscape-profile__main {
        grid-template-columns: 1fr;
        padding-left: 48px;
    }

    .landscape-profile .profile-photo-frame {
        width: min(290px, 100%);
        margin: 0 auto;
    }

    .landscape-profile__contact {
        margin-left: 48px;
    }
}

/* ==========================================================
   RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 640px) {
    .organization-hero {
        padding-top: 55px;
    }

    .organization-heading {
        margin-bottom: 32px;
    }

    .organization-heading h1 {
        font-size: clamp(37px, 12vw, 54px);
    }

    .organization-heading p {
        font-size: 16px;
    }

    .organization-stage {
        --card-shift: 68vw;
        min-height: 535px;
    }

    .organization-carousel {
        height: 500px;
    }

    .organization-gateway {
        width: 88vw;
        height: 475px;
        border-radius: 24px;
    }

    .organization-gateway__content {
        padding: 26px;
    }

    .organization-gateway__number {
        right: 24px;
        bottom: 28px;
        font-size: 78px;
    }

    .organization-gateway__content strong {
        font-size: 34px;
    }

    .organization-gateway__description {
        font-size: 14px;
    }

    .gateway-people-preview {
        inset: 45px 20px auto;
    }

    .gateway-person {
        width: 145px;
    }

    .gateway-department-preview {
        inset: 40px 24px auto;
        gap: 10px;
    }

    .gateway-department-preview span {
        min-height: 88px;
        padding: 12px;
        font-size: 12px;
    }

    .organization-carousel__footer p {
        display: none;
    }

    .organization-intro {
        padding-bottom: 72px;
    }

    .organization-intro article {
        padding: 20px;
    }

    .organization-workspace__head {
        min-height: 116px;
        padding: 20px;
    }

    .organization-workspace__head h2 {
        font-size: 25px;
    }

    .organization-workspace__head p {
        display: none;
    }

    .organization-workspace__body {
        height: calc(100% - 116px);
    }

    .organization-view {
        padding: 20px 15px 30px;
    }

    .organization-workspace__close {
        width: 42px;
        height: 42px;
    }

    .person-mini-card {
        grid-template-columns: 68px minmax(0, 1fr) 32px;
        gap: 13px;
        min-height: 101px;
        padding: 13px;
    }

    .person-mini-card__photo {
        width: 68px;
        height: 68px;
        border-radius: 13px;
        font-size: 20px;
    }

    .person-mini-card__content strong {
        font-size: 16px;
    }

    .person-mini-card__content > span {
        font-size: 12px;
    }

    .person-mini-card__content em {
        max-width: 180px;
    }

    .department-card {
        grid-template-columns: 58px minmax(0, 1fr) 32px;
        gap: 13px;
        min-height: 132px;
        padding: 16px;
    }

    .department-card__icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 22px;
    }

    .department-card__content strong {
        font-size: 18px;
    }

    .department-card__content span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .organization-chart-viewer {
        height: calc(100vh - 300px);
        min-height: 390px;
        padding: 10px;
    }

    .landscape-profile {
        padding: 23px 17px 22px 42px;
        border-radius: 20px;
    }

    .profile-stripes {
        left: 7px;
        width: 48px;
        background:
            linear-gradient(
                90deg,
                transparent 0 4px,
                var(--org-red) 4px 9px,
                transparent 9px 16px,
                var(--org-navy) 16px 21px,
                transparent 21px 28px,
                var(--org-brown) 28px 33px,
                transparent 33px
            );
    }

    .landscape-profile__top,
    .landscape-profile__main {
        padding-left: 25px;
    }

    .landscape-profile__logo {
        width: min(275px, 80vw);
    }

    .profile-department-badge {
        padding: 12px;
    }

    .profile-department-badge strong {
        font-size: 13px;
    }

    .landscape-profile__identity h3 {
        font-size: 37px;
    }

    .landscape-profile__identity .profile-position {
        font-size: 25px;
    }

    .profile-location {
        font-size: 14px;
    }

    .profile-sections summary {
        min-height: 58px;
        font-size: 15px;
    }

    .profile-section-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .profile-section-content {
        padding-left: 50px;
    }

    .landscape-profile__contact {
        grid-template-columns: 1fr;
        margin-left: 25px;
    }

    .landscape-profile__contact > * {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(9, 45, 96, 0.12);
    }

    .landscape-profile__contact > *:last-child {
        border-bottom: 0;
    }

    .portrait-profile {
        min-height: 0;
        padding: 24px 20px 25px 50px;
        border-radius: 22px;
    }

    .portrait-profile__head > img {
        width: min(250px, 78%);
    }

    .portrait-profile__photo {
        width: 185px;
    }

    .portrait-profile__sections .profile-section-content {
        padding-left: 58px;
    }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================
   MOBILE PORTRAIT PROFILE — POLISHED OVERRIDES
   Added after the original responsive rules so desktop and
   landscape layouts remain unchanged.
========================================================== */

@media (max-width: 640px) {
    .mobile-profile-preview {
        align-items: flex-start;
        padding: 8px;
    }

    .mobile-profile-preview__dialog {
        width: min(420px, 100%);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        border-radius: 20px;
        scrollbar-width: thin;
        scrollbar-color: rgba(9, 45, 96, 0.25) transparent;
    }

    .mobile-profile-preview__dialog::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-profile-preview__dialog::-webkit-scrollbar-thumb {
        background: rgba(9, 45, 96, 0.22);
        border-radius: 999px;
    }

    .mobile-profile-preview__close {
        top: 11px;
        right: 11px;
        width: 39px;
        height: 39px;
        font-size: 26px;
    }

    .portrait-profile {
        min-height: 0;
        padding: 18px 16px 20px 34px;
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(6, 31, 69, 0.16);
    }

    /* Keep the Kornet ID accent, but stop it before it dominates
       the whole mobile profile. */
    .portrait-profile .profile-stripes {
        inset: 0 auto auto 7px;
        width: 24px;
        height: 178px;
        background:
            linear-gradient(
                90deg,
                transparent 0 2px,
                var(--org-red) 2px 5px,
                transparent 5px 8px,
                var(--org-navy) 8px 11px,
                transparent 11px 14px,
                var(--org-brown) 14px 17px,
                transparent 17px
            );
        opacity: 0.92;
    }

    .portrait-profile__head {
        gap: 10px;
        padding-right: 38px;
    }

    .portrait-profile__head > img {
        width: min(210px, 66%);
    }

    .profile-department-badge--portrait {
        gap: 10px;
        padding: 10px 12px;
        border-radius: 13px;
    }

    .profile-department-badge--portrait .profile-department-badge__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .profile-department-badge--portrait small {
        font-size: 9px;
    }

    .profile-department-badge--portrait strong {
        font-size: 12px;
    }

    .profile-department-badge--portrait em {
        font-size: 10px;
        letter-spacing: 0.055em;
    }

    .portrait-profile__photo {
        width: 148px;
        margin: 16px auto 12px;
        border-radius: 18px;
        font-size: 48px;
    }

    .portrait-profile__identity .profile-type {
        padding: 6px 10px;
        font-size: 9px;
        letter-spacing: 0.09em;
    }

    .portrait-profile__identity h2 {
        margin: 8px 0 2px;
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.03;
    }

    .portrait-profile__identity .profile-position {
        font-size: 20px;
        line-height: 1.12;
    }

    .portrait-profile__identity .profile-location {
        gap: 4px;
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.35;
    }

    .portrait-profile__identity .profile-code {
        gap: 1px;
        margin-top: 7px;
        font-size: 10.5px;
    }

    .portrait-profile__sections {
        margin-top: 15px;
    }

    .portrait-profile__sections details {
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .portrait-profile__sections summary {
        min-height: 52px;
        gap: 10px;
        padding: 6px 10px;
        font-size: 14px;
    }

    .portrait-profile__sections .profile-section-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .portrait-profile__sections .profile-section-arrow {
        font-size: 18px;
    }

    .portrait-profile__sections .profile-section-content {
        padding: 0 12px 12px 48px;
        font-size: 12.5px;
        line-height: 1.6;
    }

    .portrait-profile__sections .profile-section-content ul {
        gap: 6px;
    }

    .portrait-profile__sections .profile-tags {
        gap: 6px;
    }

    .portrait-profile__sections .profile-tags span {
        padding: 6px 9px;
        font-size: 11px;
    }

    .portrait-profile__contact {
        gap: 8px;
        margin-top: 16px;
    }

    .portrait-profile__contact a {
        min-height: 48px;
        border-radius: 12px;
        font-size: 19px;
    }

    .portrait-profile__notice {
        margin-top: 12px;
        font-size: 9px;
    }
}

@media (max-width: 390px) {
    .portrait-profile {
        padding-left: 30px;
    }

    .portrait-profile__head > img {
        width: min(190px, 64%);
    }

    .portrait-profile__photo {
        width: 136px;
    }

    .portrait-profile__identity h2 {
        font-size: 28px;
    }

    .portrait-profile__identity .profile-position {
        font-size: 18px;
    }

    .profile-department-badge--portrait strong {
        font-size: 11px;
    }
}

