:root {
    --stbg-ink: #0a0c0d;
    --stbg-paper: #f4f6f7;
    --stbg-white: #ffffff;
    --stbg-muted: #667075;
    --stbg-line: #cfd5d8;
    --stbg-accent: #6ce6e0;
    --stbg-accent-dark: #093f40;
    --stbg-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.stbg-home {
    margin: 0;
    color: var(--stbg-ink);
    background: var(--stbg-paper);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}
body.stbg-home.admin-bar .stbg-header { top: 32px; }
.stbg-home a { color: inherit; text-decoration: none; }
.stbg-home button, .stbg-home a { -webkit-tap-highlight-color: transparent; }
.stbg-skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--stbg-white);
    color: var(--stbg-ink);
    transform: translateY(-150%);
}
.stbg-skip:focus { transform: translateY(0); }

.stbg-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 86px;
    padding: 0 max(28px, calc((100vw - var(--stbg-max)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--stbg-white);
    border-bottom: 1px solid rgba(255,255,255,.22);
}
.stbg-brand { display: inline-flex; align-items: center; gap: 13px; font-size: 18px; font-weight: 750; }
.stbg-brand-logo { width: 38px; height: 36px; object-fit: contain; }
.stbg-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.stbg-nav a { position: relative; padding: 10px 0; opacity: .82; transition: opacity .2s ease; }
.stbg-nav a::after { content: ""; position: absolute; left: 0; bottom: 5px; width: 100%; height: 1px; background: var(--stbg-accent); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.stbg-nav a:hover, .stbg-nav a:focus-visible { opacity: 1; }
.stbg-nav a:hover::after, .stbg-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.stbg-menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: white; padding: 12px 9px; cursor: pointer; }
.stbg-menu-toggle span { display: block; height: 1px; background: currentColor; margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }

.stbg-hero { position: relative; min-height: min(86svh, 830px); color: white; display: flex; align-items: flex-end; overflow: hidden; background: #111; }
.stbg-hero-media { position: absolute; inset: -4%; background-image: url('/wp-content/uploads/2025/06/denys-nevozhai-D8iZPlX-2fs-unsplash-scaled.jpg'); background-size: cover; background-position: center 45%; transform: scale(1.035); transition: transform 1.2s cubic-bezier(.2,.75,.2,1); }
.is-ready .stbg-hero-media { transform: scale(1); }
.stbg-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,8,9,.82) 0%, rgba(4,8,9,.55) 48%, rgba(4,8,9,.12) 82%), linear-gradient(0deg, rgba(4,8,9,.64) 0%, transparent 45%); }
.stbg-hero-content { position: relative; z-index: 2; width: min(var(--stbg-max), calc(100% - 56px)); margin: 0 auto; padding: 155px 0 72px; }
.stbg-kicker, .stbg-section-label { margin: 0 0 22px; color: var(--stbg-accent); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.stbg-hero h1 { margin: 0; max-width: 850px; font-family: Georgia, "Times New Roman", serif; font-size: 120px; line-height: .94; font-weight: 400; letter-spacing: 0; }
.stbg-hero-en { margin: 25px 0 0; max-width: 630px; font-size: 24px; line-height: 1.4; font-weight: 500; }
.stbg-hero-copy { margin: 22px 0 0; max-width: 610px; font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.8); }
.stbg-hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.stbg-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; font-size: 14px; font-weight: 700; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.stbg-button:hover, .stbg-button:focus-visible { border-color: currentColor; }
.stbg-button-primary { background: var(--stbg-accent); color: var(--stbg-ink) !important; }
.stbg-button-primary:hover { background: white; }
.stbg-text-link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.5); font-size: 14px; }
.stbg-hero-meta { position: absolute; z-index: 2; right: max(28px, calc((100vw - var(--stbg-max)) / 2)); bottom: 34px; display: flex; gap: 22px; color: rgba(255,255,255,.6); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
[data-hero-item] { opacity: 1; transform: none; }
.is-ready [data-hero-item] { animation: stbg-enter .7s both cubic-bezier(.22,.8,.25,1); }
.is-ready [data-hero-item]:nth-child(2) { animation-delay: .08s; }
.is-ready [data-hero-item]:nth-child(3) { animation-delay: .16s; }
.is-ready [data-hero-item]:nth-child(4) { animation-delay: .24s; }
.is-ready [data-hero-item]:nth-child(5) { animation-delay: .32s; }
@keyframes stbg-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.stbg-section { padding: 88px max(28px, calc((100vw - var(--stbg-max)) / 2)); }
.stbg-section-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 64px; }
.stbg-section-heading h2, .stbg-case h2, .stbg-note h2, .stbg-contact h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 54px; line-height: 1.18; font-weight: 400; letter-spacing: 0; }
.stbg-section-heading > p:last-child, .stbg-section-heading-row > p { margin: 0 0 8px; color: var(--stbg-muted); font-size: 16px; line-height: 1.8; max-width: 440px; }
.stbg-research { background: var(--stbg-paper); }
.stbg-process { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--stbg-line); }
.stbg-process li { min-height: 150px; padding: 22px 24px 20px 0; border-right: 1px solid var(--stbg-line); display: flex; flex-direction: column; }
.stbg-process li + li { padding-left: 24px; }
.stbg-process li:last-child { border-right: 0; }
.stbg-process span { color: var(--stbg-muted); font-size: 12px; }
.stbg-process strong { margin-top: auto; font-size: 22px; }
.stbg-process small { margin-top: 9px; color: var(--stbg-muted); font-size: 13px; line-height: 1.6; }

.stbg-systems { color: white; background: var(--stbg-ink); }
.stbg-section-heading-row { grid-template-columns: 1.25fr 1fr; }
.stbg-system-list { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.25); }
.stbg-system-item { min-height: 126px; display: grid; grid-template-columns: 52px 1.1fr 1fr 36px; align-items: center; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.25); transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
.stbg-system-item:hover, .stbg-system-item:focus-visible { color: white; background: rgba(108,230,224,.045); border-bottom-color: var(--stbg-accent); }
.stbg-system-index, .stbg-system-item > div > p { font-size: 11px; color: #a8b1b5; text-transform: uppercase; letter-spacing: .09em; }
.stbg-system-item:hover .stbg-system-index, .stbg-system-item:hover > div > p { color: var(--stbg-accent); }
.stbg-system-item > div > p { margin: 0 0 8px; }
.stbg-system-item h3 { margin: 0; font-family: inherit; font-size: 29px; font-weight: 600; line-height: 1.35; color: white; }
.stbg-system-desc { margin: 0; max-width: 430px; color: #c5cccf; line-height: 1.65; font-size: 14px; }
.stbg-system-item:hover .stbg-system-desc { color: white; }
.stbg-system-arrow { justify-self: end; font-size: 27px; transition: transform .2s ease; }
.stbg-system-item:hover .stbg-system-arrow { color: var(--stbg-accent); transform: translate(2px,-2px); }

.stbg-case { background: white; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.stbg-case-title h2 span { color: #7c878c; }
.stbg-case-data { border-top: 1px solid var(--stbg-ink); }
.stbg-case-data > div { display: grid; grid-template-columns: 1fr 180px; align-items: baseline; gap: 20px; padding: 20px 0 24px; border-bottom: 1px solid var(--stbg-line); }
.stbg-case-data strong { font-family: Georgia, "Times New Roman", serif; font-size: 64px; font-weight: 400; }
.stbg-case-data span { color: var(--stbg-muted); font-size: 13px; }
.stbg-case-note { grid-column: 2; margin: -32px 0 0; max-width: 560px; color: var(--stbg-muted); font-size: 12px; line-height: 1.7; }

.stbg-note { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; border-top: 1px solid var(--stbg-line); }
.stbg-note-copy { max-width: 460px; color: var(--stbg-muted); font-size: 16px; line-height: 1.85; }
.stbg-note-copy p { margin: 0 0 18px; }

.stbg-contact { padding: 80px max(28px, calc((100vw - var(--stbg-max)) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; background: var(--stbg-accent); color: var(--stbg-ink); }
.stbg-contact .stbg-section-label { color: var(--stbg-accent-dark); }
.stbg-contact-actions { display: flex; align-items: center; gap: 24px; }
.stbg-button-light { background: var(--stbg-ink); color: white !important; }
.stbg-button-light:hover { background: white; color: var(--stbg-ink) !important; }
.stbg-contact-link { font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--stbg-ink); padding: 12px 0; }
.stbg-footer { padding: 38px max(28px, calc((100vw - var(--stbg-max)) / 2)); display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 30px; background: var(--stbg-ink); color: #98a2a6; font-size: 11px; }
.stbg-footer p { margin: 0; }
.stbg-brand-footer { color: white !important; font-size: 15px; }

[data-reveal] { opacity: 1; transform: none; }
[data-reveal].is-visible { animation: stbg-enter .5s ease both; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    body.stbg-home.admin-bar .stbg-header { top: 46px; }
    .stbg-header { min-height: 72px; }
    .stbg-menu-toggle { display: block; position: relative; z-index: 3; }
    .stbg-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .stbg-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .stbg-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .stbg-nav { position: absolute; top: 0; left: 0; width: 100%; padding: 96px 28px 34px; background: rgba(8,11,12,.98); flex-direction: column; align-items: flex-start; gap: 12px; transform: translateY(-110%); transition: transform .3s ease; }
    .stbg-nav.is-open { transform: translateY(0); }
    .stbg-nav a { width: 100%; padding: 13px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.14); }
    .stbg-hero { min-height: 88svh; }
    .stbg-hero-content { padding-bottom: 54px; }
    .stbg-hero h1 { font-size: 94px; }
    .stbg-hero-en { font-size: 22px; }
    .stbg-section-heading h2, .stbg-case h2, .stbg-note h2, .stbg-contact h2 { font-size: 46px; }
    .stbg-system-item h3 { font-size: 30px; }
    .stbg-case-data strong { font-size: 56px; }
    .stbg-hero-meta { display: none; }
    .stbg-section { padding-top: 72px; padding-bottom: 72px; }
    .stbg-section-heading, .stbg-section-heading-row, .stbg-case, .stbg-note { grid-template-columns: 1fr; gap: 40px; }
    .stbg-process { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
    .stbg-process li:nth-child(2) { border-right: 0; }
    .stbg-process li:nth-child(n+3) { border-top: 1px solid var(--stbg-line); }
    .stbg-process li:nth-child(3) { padding-left: 0; }
    .stbg-system-list { margin-top: 55px; }
    .stbg-system-item { grid-template-columns: 44px 1fr 32px; min-height: 132px; }
    .stbg-system-desc { display: none; }
    .stbg-case-note { grid-column: 1; margin: 0; }
    .stbg-contact { grid-template-columns: 1fr; align-items: start; }
    .stbg-footer { grid-template-columns: 1fr auto; }
    .stbg-footer p:nth-child(2) { display: none; }
}

@media (max-width: 1200px) and (min-width: 901px) {
    .stbg-hero h1 { font-size: 106px; }
    .stbg-hero-en { font-size: 23px; }
    .stbg-section-heading h2, .stbg-case h2, .stbg-note h2, .stbg-contact h2 { font-size: 48px; }
}

@media (max-width: 560px) {
    .stbg-header { padding-left: 20px; padding-right: 20px; }
    .stbg-hero { min-height: 91svh; }
    .stbg-hero-media { background-position: 59% center; }
    .stbg-hero-shade { background: linear-gradient(90deg, rgba(4,8,9,.88), rgba(4,8,9,.34)), linear-gradient(0deg, rgba(4,8,9,.75), transparent 55%); }
    .stbg-hero-content { width: calc(100% - 40px); padding-top: 128px; padding-bottom: 38px; }
    .stbg-kicker { margin-bottom: 15px; font-size: 10px; }
    .stbg-hero h1 { font-size: 64px; }
    .stbg-hero-en { font-size: 18px; line-height: 1.2; }
    .stbg-hero-copy { margin-top: 16px; font-size: 14px; line-height: 1.65; }
    .stbg-hero-actions { margin-top: 25px; gap: 16px; flex-wrap: wrap; }
    .stbg-button { width: 100%; }
    .stbg-text-link { font-size: 13px; }
    .stbg-section { padding: 72px 20px; }
    .stbg-section-heading h2, .stbg-case h2, .stbg-note h2, .stbg-contact h2 { font-size: 39px; }
    .stbg-process { grid-template-columns: repeat(2, 1fr); }
    .stbg-process li, .stbg-process li + li { min-height: 132px; padding: 18px 12px 18px 0; border-right: 0; border-top: 1px solid var(--stbg-line); }
    .stbg-process li:first-child, .stbg-process li:nth-child(2) { border-top: 0; }
    .stbg-system-item { gap: 12px; padding: 14px 0; }
    .stbg-system-item:hover { background: rgba(108,230,224,.045); }
    .stbg-system-index { align-self: start; padding-top: 7px; }
    .stbg-system-item h3 { font-size: 23px; line-height: 1.25; }
    .stbg-system-arrow { font-size: 22px; }
    .stbg-case-data > div { grid-template-columns: 1fr 115px; }
    .stbg-case-data strong { font-size: 52px; }
    .stbg-contact { padding: 64px 20px; }
    .stbg-contact-actions { width: 100%; flex-direction: column; align-items: flex-start; }
    .stbg-footer { padding: 30px 20px; }
}


/* Scope typography and contrast against WordPress global heading styles. */
.stbg-home h1, .stbg-home h2 { color: inherit; }
.stbg-home h3 { font-family: inherit; }
.stbg-home a:focus-visible, .stbg-home button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.stbg-research .stbg-section-label, .stbg-case .stbg-section-label, .stbg-note .stbg-section-label { color: #087278; }
.stbg-section-heading > div { min-width: 0; }
.stbg-hero h1 { color: white; }
.stbg-note h2 { font-size: 40px; }
.stbg-contact h2 { font-size: 48px; }
.stbg-brand-logo { width: 38px; height: 38px; }
.stbg-motion { padding-top: 0; background: var(--stbg-paper); }
.stbg-motion-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.stbg-motion-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 44px; line-height: 1.2; font-weight: 400; margin: 0; }
.stbg-motion-heading p { color: var(--stbg-muted); font-size: 14px; line-height: 1.8; max-width: 400px; margin: 0; }
.stbg-motion-scene { position: relative; margin: 32px 0 0; background: #edf0ef; border-top: 1px solid var(--stbg-line); border-bottom: 1px solid var(--stbg-line); }
.stbg-motion-scene svg { display: block; width: 100%; height: auto; }
.stbg-motion-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stbg-motion-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; color: var(--stbg-muted); font-size: 12px; line-height: 1.6; }
.stbg-motion-toggle { border: 1px solid #b9c5c6; background: transparent; border-radius: 0; padding: 9px 14px; min-height: 40px; color: var(--stbg-ink); font: inherit; white-space: nowrap; cursor: pointer; }
.stbg-motion-toggle:hover { background: white; }
.stbg-motion-time { display: flex; gap: 20px; color: #3d5759; font-variant-numeric: tabular-nums; }
@media (max-width:900px) {
 .stbg-note h2 { font-size: 36px; }
 .stbg-contact h2 { font-size: 42px; }
 .stbg-motion-heading { align-items: start; }
 .stbg-motion-heading h2 { font-size: 36px; }
 .stbg-motion-heading p { max-width: 300px; }
}
@media (max-width:560px) {
 .stbg-hero h1 { font-size: clamp(40px, 11.8vw, 64px); white-space: nowrap; }
 .stbg-section { padding-top: 60px; padding-bottom: 60px; }
 .stbg-motion { padding-top: 0; }
 .stbg-note h2 { font-size: clamp(22px, 7.1vw, 28px); }
 .stbg-contact h2 { font-size: 32px; }
 .stbg-motion-heading { display: block; }
 .stbg-motion-heading h2 { font-size: clamp(22px, 7.1vw, 28px); }
 .stbg-motion-heading p { margin-top: 16px; max-width: none; }
 .stbg-motion-scene { overflow: hidden; }
 .stbg-motion-scene svg, .stbg-motion-scene canvas { width: 175%; max-width: none; margin-left: -37.5%; }
 .stbg-motion-scene canvas { left: 0; }
 .stbg-motion-time { gap: 10px; }
 .stbg-motion-controls { align-items: start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-hero-item], [data-reveal] { opacity: 1; transform: none; }
}

