:root {
    --mgn-bg: #000;
    --mgn-surface: #000;
    --mgn-border: var(--site-tone-30313c, #3c3031);
    --mgn-accent: #e94259;
    --mgn-muted: var(--site-tone-b3b3bf, #bfb3b4);
    --mgn-glass-bg: rgba(0, 0, 0, .52);
    --mgn-glass-border: rgba(255, 255, 255, .16);
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { background: var(--mgn-bg); color: var(--site-tone-f5f5f7, #f7f5f5); }
.site-main { min-width: 0; }
.site-main:focus { outline: none; }
.site-main > .page-bg > .darkening,
.site-main > .page-bg-news > .darkening { padding-block: 40px; }
.site-main p { line-height: 1.75; }
.main-welcome { height: auto; min-height: 660px; background-position: center; background-size: cover; background-color: #000; }
.site-main .main-welcome > .welcome {
    padding: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .97) 0%, rgba(0, 0, 0, .88) 30%, rgba(0, 0, 0, .28) 72%), linear-gradient(0deg, #000 0%, transparent 35%);
}
.hero-inner { max-width: 1440px; min-height: 660px; padding: 90px 48px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-copy { max-width: 100%; margin-block: auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--site-tone-c4b8bf, #c4b8b9); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--mgn-accent); box-shadow: 0 0 14px #e9425970; }
.hero-copy h1 { text-align: center; font-size: clamp(28px, 4.4vw, 76px); font-family: CenturyGothic, Arial, sans-serif; line-height: 1.2; letter-spacing: -.04em; margin: 28px 0 24px; }
.hero-copy h1 em { color: #ff6478; font-style: normal; }
.hero-description { text-align: center; color: #fff; font-size: clamp(20px, 2.6vw, 42px); margin-bottom: 32px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 22px; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, box-shadow .2s, transform .2s; }
.hero-button-primary { background: #000; color: #fff; border: 1px solid #b96273; box-shadow: 0 0 0 1px #e9425924, 0 4px 18px #e9425914; }
.hero-button-primary:hover, .hero-button-primary:focus-visible { background: #000; color: #fff; border-color: #ff94a3; box-shadow: 0 0 0 1px #ff94a345, 0 4px 24px #e942592a; transform: translateY(-2px); }
.hero-button-primary > span { color: #ff8a9a; }
.hero-button-secondary { color: var(--site-tone-ece9ee, #eee9ea); border: 1px solid var(--site-tone-66606a, #6a6061); background: #000; }
.hero-button-secondary:hover { color: #fff; background: #000; transform: translateY(-2px); }
.hero-button span { font-size: 19px; line-height: 1; }
.hero-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 65px; color: var(--site-tone-9996a3, #a39697); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hero-bottom a { color: var(--site-tone-d4d0d9, #d9d0d1); text-decoration: none; }
.hero-bottom a:hover { color: #ff7c88; }
.hero-bottom a span { margin-left: 16px; }
.home-projects.standard { background-image: none; background-color: var(--mgn-bg); }
.home-projects > .darkening { background: transparent; padding: 70px 0 !important; }
.home-projects .container-xxl { max-width: 1344px; padding-inline: 32px; }
.section-eyebrow { justify-content: center; color: var(--mgn-muted); margin-bottom: 10px; }
.section-title { font-size: clamp(30px, 3vw, 44px); font-family: CenturyGothicBold, Arial, sans-serif; letter-spacing: -.04em; margin-bottom: 36px; }
.title-dot { color: var(--mgn-accent); }
.card { color: var(--site-tone-f5f5f7, #f7f5f5); }
.card-image-container { border: 1px solid var(--mgn-border); border-radius: 12px; transition: border-color .2s, transform .2s; }
.card-image { border-radius: 11px; }
.card-image-container:hover { border-color: #b54b5d; transform: translateY(-4px); }
.card h4 { font-size: clamp(16px, 1.4vw, 22px); line-height: 1.5; margin-top: 16px; }
.home-projects .card-main { width: calc(33.333% - 24px); margin: 0 12px 24px; }
.home-projects .card-image-container { aspect-ratio: 9 / 16; }
.home-projects .card-image { width: 100%; height: 100%; object-fit: cover; }
.home-projects .row { margin-top: 70px !important; row-gap: 24px; }
.home-projects .row h1 { font-size: clamp(26px, 2.4vw, 36px); text-align: left; margin-bottom: 20px; }
.content-block {
    background: linear-gradient(135deg, rgba(255,255,255,.035), transparent 45%), var(--mgn-glass-bg);
    border: 1px solid var(--mgn-glass-border); border-radius: 14px; padding: 24px;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 32px rgba(0,0,0,.16);
}
.home-projects .content-block p { font-size: 15px; color: var(--site-tone-c7c7d1, #d1c7c8); }
.home-projects .col-lg-8 > .content-block { padding: 8px; }
.link-button, .link-button-w { display: inline-flex; align-items: center; justify-content: center; gap: 14px; color: #fff; background: #000; border: 1px solid #b96273; border-radius: 7px; padding: 12px 18px; font-family: CenturyGothicBold, Arial, sans-serif; font-size: 14px; box-shadow: 0 0 0 1px #e9425924, 0 4px 18px #e9425914; transition: border-color .2s, box-shadow .2s, transform .2s; }
.link-button > span, .link-button-w > span { color: #ff94a3; font-size: 18px; line-height: 1; transition: transform .2s; }
.link a:hover { opacity: 1; }
.link-button:is(:hover, :focus-visible), .link-button-w:is(:hover, :focus-visible) { color: #fff; background: #000; border-color: #ff94a3; box-shadow: 0 0 0 1px #ff94a345, 0 4px 24px #e942592a; transform: translateY(-2px); }
.link-button:hover > span, .link-button-w:hover > span { transform: translateX(3px); }
.site-main .library-burger { display: none; }
.filtering-form .parameters { padding: 8px 10px; font-size: 12px; }
.site-main a:focus-visible, footer a:focus-visible { outline: 2px solid #ff7c88; outline-offset: 4px; }
footer { padding: 20px 0 16px; border-top: 1px solid var(--mgn-border); background: #000; font-size: 12px; }
footer .container-xxl { max-width: 1344px; padding-inline: 32px; }
footer .row { margin-bottom: 0; }
footer h3 { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--site-tone-e5e5ed, #ede5e6); border: 0; margin-bottom: 10px; }
footer a { color: var(--site-tone-aaaab6, #b6aaab); line-height: 1.9; }
footer a:hover { color: #ff7c88; }
@media (max-width: 1199px) {
    .hero-inner { padding: 72px 32px 28px; min-height: 600px; }
    .main-welcome { min-height: 600px; }
}
@media (max-width: 767px) {
    .hero-inner { padding: 64px 24px 28px; min-height: 620px; }
    .main-welcome { min-height: 620px; background-position: 58% center; }
    .site-main .main-welcome > .welcome { background: linear-gradient(90deg, #000000f0, #00000080), linear-gradient(0deg, #000, transparent 70%); }
    .hero-copy h1 { font-size: clamp(26px, 6vw, 42px); margin-top: 24px; }
    .hero-description { font-size: clamp(18px, 3.7vw, 28px); }
    .eyebrow { font-size: 9px; letter-spacing: .08em; }
    .hero-bottom { padding-top: 48px; font-size: 9px; letter-spacing: .03em; }
    .home-projects .container-xxl { padding-inline: 20px; }
    .home-projects > .darkening { padding: 44px 0 !important; }
    .home-projects .card-main { width: calc(33.333% - 12px); margin-inline: 6px; }
    .home-projects .card h4 { font-size: 13px; }
    .content-block { padding: 18px; }
    .home-projects .row { margin-top: 44px !important; }
    footer .row { row-gap: 28px; }
    footer .col-6 { width: 100%; }
}
@media (max-width: 991px) {
    .site-main .library-burger { display: inline-flex; align-items: center; gap: 8px; }
}
@media (max-width: 575px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-button { width: 100%; max-width: 320px; padding: 15px 18px; font-size: 12px; }
    .hero-bottom > span { max-width: 130px; }
    .home-projects .d-flex:has(> .card-main) { flex-direction: column; }
    .home-projects .card-main { width: 100%; margin: 0 0 28px; }
    .home-projects .card h4 { font-size: 18px; margin-top: 12px; }
    .section-title { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .anim-top, .anim-top-delay-500ms, .anim-top-delay-1000ms { opacity: 1; }
    .anim.show .anim-top, .anim.show .anim-top-delay-500ms, .anim.show .anim-top-delay-1000ms { animation: none; }
    .hero-button, .card-image-container, .site-header .nav-link { transition: none; }
}
