:root {
    --three-e-bg: #050506;
    --three-e-panel: #0a0b0d;
    --three-e-text: #f5f4ef;
    --three-e-muted: #aaaeb7;
    --three-e-line: rgba(255, 255, 255, 0.16);
    --three-e-cyan: #19d8ee;
    --three-e-violet: #765cff;
    --three-e-hero-title-color: #f5f4ef;
    --three-e-hero-title-size: 104px;
    --three-e-hero-title-mobile-size: 68px;
    --three-e-section-title-color: #f5f4ef;
    --three-e-section-title-size: 78px;
    --three-e-section-mobile-size: 54px;
    --three-e-card-title-color: #f5f4ef;
    --three-e-card-title-size: 39px;
    --three-e-feature-title-size: 54px;
    --three-e-card-title-mobile-size: 40px;
    --three-e-body-text-color: #d0d0d3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.three-e-pm-page {
    margin: 0;
    overflow-x: hidden;
    background: var(--three-e-bg);
    color: var(--three-e-text);
    font-family: Arial, Helvetica, sans-serif;
}
body.three-e-pm-page a { color: inherit; text-decoration: none; }
body.three-e-pm-page button { font: inherit; }
body.three-e-pm-page img, body.three-e-pm-page video { max-width: 100%; }

.three-e-pm-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: 92px;
    display: grid;
    grid-template-columns: 230px minmax(420px, 820px) 150px;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    background: linear-gradient(180deg, rgba(5, 5, 6, 0.98), rgba(5, 5, 6, 0.78), transparent);
    backdrop-filter: blur(8px);
}
.admin-bar .three-e-pm-header { top: 32px; }
.three-e-pm-logo img { display: block; width: 175px; filter: brightness(0) invert(1); }
.three-e-pm-nav {
    display: flex;
    justify-content: center;
    gap: 54px;
    padding: 19px 36px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(#090a0e, #090a0e) padding-box, linear-gradient(90deg, var(--three-e-violet), var(--three-e-cyan)) border-box;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.three-e-pm-nav a { white-space: nowrap; }
.three-e-pm-languages { display: flex; justify-content: flex-end; gap: 8px; }
.three-e-pm-language {
    display: grid;
    width: 54px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.three-e-pm-language.active { background: #fff; color: #06070a; }
.three-e-pm-menu-toggle, .three-e-pm-mobile-languages { display: none; }

.three-e-pm-hero {
    position: relative;
    height: min(76vh, 780px);
    min-height: 620px;
    overflow: hidden;
    border-bottom: 1px solid var(--three-e-line);
}
.three-e-pm-hero video, .three-e-pm-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.three-e-pm-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.22)), linear-gradient(0deg, rgba(5, 5, 6, 0.75), transparent 60%);
}
.three-e-pm-hero-copy {
    position: absolute;
    z-index: 2;
    bottom: 90px;
    left: 5vw;
    width: min(690px, 80vw);
}
.three-e-pm-kicker { margin: 0 0 24px; font-size: 13px; font-weight: 800; letter-spacing: 0.34em; }
.three-e-pm-hero h1 { margin: 0; color: var(--three-e-hero-title-color) !important; -webkit-text-fill-color: var(--three-e-hero-title-color) !important; font-size: clamp(48px, 6.2vw, var(--three-e-hero-title-size)) !important; line-height: 0.86; letter-spacing: -0.045em; }
.three-e-pm-hero h1 em { display: block; margin-top: 12px; color: var(--three-e-hero-title-color) !important; -webkit-text-fill-color: var(--three-e-hero-title-color) !important; font-family: Georgia, serif; font-weight: 400; }
.three-e-pm-hero-copy > p:last-child { max-width: 670px; margin: 34px 0 0; color: var(--three-e-body-text-color) !important; -webkit-text-fill-color: var(--three-e-body-text-color) !important; font-size: 18px; line-height: 1.65; }

.three-e-pm-filters-wrap {
    position: sticky;
    z-index: 900;
    top: 92px;
    border-bottom: 1px solid var(--three-e-line);
    background: rgba(5, 5, 6, 0.9);
    backdrop-filter: blur(14px);
}
.admin-bar .three-e-pm-filters-wrap { top: 124px; }
.three-e-pm-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(1500px, 92vw);
    margin: auto;
    padding: 18px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.three-e-pm-filters::-webkit-scrollbar { display: none; }
.three-e-pm-filter {
    flex: none;
    padding: 13px 21px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
}
.three-e-pm-filter.active { border-color: transparent; background: linear-gradient(90deg, var(--three-e-violet), var(--three-e-cyan)); color: #050506; }

.three-e-pm-projects { width: min(1500px, 92vw); margin: 0 auto; padding: 54px 0 120px; }
.three-e-pm-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.three-e-pm-section-head h2 { margin: 0; color: var(--three-e-section-title-color) !important; -webkit-text-fill-color: var(--three-e-section-title-color) !important; font-family: Georgia, serif; font-size: clamp(42px, 5vw, var(--three-e-section-title-size)) !important; font-weight: 400; }
.three-e-pm-section-head p { max-width: 460px; margin: 0 0 8px; color: var(--three-e-body-text-color) !important; -webkit-text-fill-color: var(--three-e-body-text-color) !important; font-size: 14px; line-height: 1.6; text-align: right; }
.three-e-pm-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.three-e-pm-card {
    position: relative;
    grid-column: span 4;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid var(--three-e-line);
    background: var(--three-e-panel);
    isolation: isolate;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.three-e-pm-card.feature { grid-row: span 2; grid-column: span 8; min-height: 658px; }
.three-e-pm-card.is-hidden { display: none; }
.three-e-pm-card:hover { transform: translateY(-4px); border-color: rgba(25, 216, 238, 0.55); }
.three-e-pm-card > img, .three-e-pm-card > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.three-e-pm-card:hover > img, .three-e-pm-card:hover > video { transform: scale(1.035); }
.three-e-pm-card::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.88)); }
.three-e-pm-badge { position: absolute; z-index: 3; top: 18px; left: 18px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.65); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }
.three-e-pm-play { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%; background: rgba(0, 0, 0, 0.28); font-size: 14px; }
.three-e-pm-card-copy { position: absolute; z-index: 3; right: 22px; bottom: 20px; left: 22px; }
.three-e-pm-card-index { display: block; margin-bottom: 10px; color: #c7c8cc; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; }
.three-e-pm-card h3 { margin: 0; color: var(--three-e-card-title-color) !important; -webkit-text-fill-color: var(--three-e-card-title-color) !important; font-family: Georgia, serif; font-size: clamp(30px, 3vw, var(--three-e-feature-title-size)) !important; font-weight: 400; line-height: 0.98; }
.three-e-pm-card:not(.feature) h3 { font-size: clamp(25px, 2.4vw, var(--three-e-card-title-size)) !important; }
.three-e-pm-card-meta { display: flex; gap: 10px; margin-top: 12px; color: #d1d2d5; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.three-e-pm-card-meta span + span::before { margin-right: 10px; color: var(--three-e-cyan); content: "·"; }
.three-e-pm-empty { grid-column: 1 / -1; padding: 70px 25px; border: 1px solid var(--three-e-line); color: var(--three-e-muted); text-align: center; }

.three-e-pm-cta { display: grid; min-height: 520px; padding: 90px 5vw; place-items: center; border-top: 1px solid var(--three-e-line); background: radial-gradient(circle at 30% 20%, rgba(25, 216, 238, 0.12), transparent 35%), radial-gradient(circle at 75% 80%, rgba(118, 92, 255, 0.16), transparent 38%), #08090b; text-align: center; }
.three-e-pm-cta small { color: #c2c4c9; font-weight: 800; letter-spacing: 0.34em; }
.three-e-pm-cta h2 { max-width: 900px; margin: 28px auto 18px; color: var(--three-e-section-title-color) !important; -webkit-text-fill-color: var(--three-e-section-title-color) !important; font-size: clamp(45px, 6vw, 92px); line-height: 0.92; }
.three-e-pm-cta h2 em { color: var(--three-e-section-title-color) !important; -webkit-text-fill-color: var(--three-e-section-title-color) !important; font-family: Georgia, serif; font-weight: 400; }
.three-e-pm-cta p { color: var(--three-e-body-text-color) !important; -webkit-text-fill-color: var(--three-e-body-text-color) !important; font-size: 17px; }
.three-e-pm-pill { display: inline-flex; margin-top: 25px; padding: 18px 30px; border: 1px solid #fff; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }
.three-e-pm-footer { display: flex; justify-content: space-between; gap: 30px; padding: 36px 5vw; border-top: 1px solid var(--three-e-line); color: #8f9299; font-size: 12px; }

.three-e-pm-single-hero { position: relative; min-height: 72vh; padding: 190px 5vw 90px; overflow: hidden; border-bottom: 1px solid var(--three-e-line); }
.three-e-pm-single-hero > img, .three-e-pm-single-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.three-e-pm-single-hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.35)), linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 60%); }
.three-e-pm-single-copy { position: relative; z-index: 2; max-width: 920px; }
.three-e-pm-single-copy h1 { max-width: 950px; margin: 20px 0; color: var(--three-e-hero-title-color) !important; -webkit-text-fill-color: var(--three-e-hero-title-color) !important; font-family: Georgia, serif; font-size: clamp(54px, 7vw, 118px); font-weight: 400; line-height: 0.9; }
.three-e-pm-single-copy p { max-width: 650px; color: var(--three-e-body-text-color) !important; -webkit-text-fill-color: var(--three-e-body-text-color) !important; font-size: 17px; line-height: 1.65; }
.three-e-pm-detail { width: min(1460px, 92vw); margin: auto; padding: 70px 0 120px; }
.three-e-pm-detail-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.three-e-pm-detail-item { min-height: 420px; margin: 0; overflow: hidden; border: 1px solid var(--three-e-line); background: #0a0b0d; }
.three-e-pm-detail-item:first-child { grid-column: 1 / -1; min-height: min(72vh, 820px); }
.three-e-pm-detail-item img, .three-e-pm-detail-item video { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.three-e-pm-detail-copy { width: min(840px, 92vw); margin: 65px auto 0; color: #d6d7da; font-size: 19px; line-height: 1.75; text-align: center; }
.three-e-pm-project-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--three-e-line); }
.three-e-pm-project-nav a { max-width: 46%; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }

.three-e-pm-nav a:focus-visible, .three-e-pm-filter:focus-visible, .three-e-pm-card:focus-visible, .three-e-pm-pill:focus-visible, .three-e-pm-menu-toggle:focus-visible { outline: 2px solid var(--three-e-cyan); outline-offset: 4px; }

@media (max-width: 1050px) {
    .three-e-pm-header { grid-template-columns: 190px 1fr 130px; }
    .three-e-pm-nav { gap: 24px; }
    .three-e-pm-card { grid-column: span 6; }
    .three-e-pm-card.feature { grid-column: span 12; min-height: 560px; }
    .three-e-pm-grid { gap: 15px; }
}

@media (max-width: 782px) {
    .admin-bar .three-e-pm-header { top: 46px; }
    .admin-bar .three-e-pm-filters-wrap { top: 120px; }
}

@media (max-width: 760px) {
    .three-e-pm-header { height: 74px; grid-template-columns: 1fr auto; padding: 0 20px; background: rgba(5, 5, 6, 0.96); }
    .three-e-pm-logo { position: relative; z-index: 2; }
    .three-e-pm-logo img { width: 145px; }
    .three-e-pm-menu-toggle { position: relative; z-index: 2; display: grid; width: 46px; height: 46px; padding: 0; place-content: center; gap: 5px; border: 1px solid rgba(255, 255, 255, 0.48); border-radius: 50%; background: #090a0e; color: #fff; cursor: pointer; }
    .three-e-pm-menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.25s ease; }
    .three-e-pm-header.menu-open .three-e-pm-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .three-e-pm-header.menu-open .three-e-pm-menu-toggle span:nth-child(2) { opacity: 0; }
    .three-e-pm-header.menu-open .three-e-pm-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .three-e-pm-nav { position: absolute; top: 74px; right: 12px; left: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 18px 18px; border: 1px solid var(--three-e-line); border-radius: 0 0 18px 18px; background: rgba(7, 8, 11, 0.98); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease; }
    .three-e-pm-header.menu-open .three-e-pm-nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
    .three-e-pm-nav > a { padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
    .three-e-pm-languages { display: none; }
    .three-e-pm-mobile-languages { display: flex; gap: 10px; padding-top: 16px; }
    .three-e-pm-mobile-languages .three-e-pm-language { width: 62px; height: 42px; }
    .three-e-pm-hero { height: 82vh; min-height: 660px; }
    .three-e-pm-hero-copy { right: 24px; bottom: 54px; left: 24px; width: auto; }
    .three-e-pm-hero h1 { font-size: clamp(40px, 13vw, var(--three-e-hero-title-mobile-size)) !important; }
    .three-e-pm-hero-copy > p:last-child { font-size: 16px; line-height: 1.55; }
    .three-e-pm-filters-wrap { top: 74px; }
    .three-e-pm-filters { width: 100%; padding: 14px 20px; }
    .three-e-pm-filter { padding: 12px 18px; }
    .three-e-pm-projects { width: calc(100% - 32px); padding: 38px 0 78px; }
    .three-e-pm-section-head { display: block; }
    .three-e-pm-section-head h2 { font-size: clamp(36px, 11vw, var(--three-e-section-mobile-size)) !important; }
    .three-e-pm-section-head p { margin-top: 14px; text-align: left; }
    .three-e-pm-grid { grid-template-columns: 1fr; gap: 14px; }
    .three-e-pm-card, .three-e-pm-card.feature { grid-row: auto; grid-column: 1; min-height: 68vw; }
    .three-e-pm-card.feature { min-height: 92vw; }
    .three-e-pm-card:hover { transform: none; }
    .three-e-pm-card h3, .three-e-pm-card:not(.feature) h3 { font-size: clamp(26px, 9vw, var(--three-e-card-title-mobile-size)) !important; }
    .three-e-pm-cta { min-height: 430px; padding: 72px 24px; }
    .three-e-pm-footer { display: block; padding: 30px 24px; line-height: 2; }
    .three-e-pm-single-hero { min-height: 78vh; padding: 155px 24px 60px; }
    .three-e-pm-single-copy h1 { font-size: clamp(48px, 14vw, 70px); }
    .three-e-pm-detail { width: calc(100% - 32px); padding: 40px 0 75px; }
    .three-e-pm-detail-media { grid-template-columns: 1fr; gap: 14px; }
    .three-e-pm-detail-item, .three-e-pm-detail-item:first-child { grid-column: 1; min-height: 72vw; }
    .three-e-pm-detail-copy { margin-top: 42px; font-size: 17px; text-align: left; }
    .three-e-pm-project-nav { display: grid; }
    .three-e-pm-project-nav a { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .three-e-pm-card, .three-e-pm-card > img, .three-e-pm-card > video, .three-e-pm-nav { transition: none; }
}
