.ks-header .ks-menu { text-transform: uppercase; letter-spacing: .035em; }
.ks-journey {
    --journey-top: clamp(28px, 4.2vw, 62px);
    width: min(calc(100% - 96px), 1280px);
    min-height: calc(100svh - 112px);
    margin-inline: auto;
    padding-top: var(--journey-top);
    display: grid;
    grid-template-rows: 1fr auto;
}
.ks-journey h1:not(.wp-block-heading), .ks-journey h2 {
    color: #F1ECE5;
    font-family: var(--ks-title);
    font-weight: 400;
    line-height: 1.08;
}
.ks-journey h1:not(.wp-block-heading) {
    margin: 0 0 clamp(24px, 3.2vw, 46px);
    font-size: clamp(34px, 5.2vw, 70px);
}
@font-face {
    font-family: Lora;
    src: url("../fonts/lora-italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
}
.ks-journey:has(.ks-step) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.ks-step {
    position: fixed;
    z-index: 2;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    text-align: center;
}
.ks-step a, .ks-contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(228px, 80vw);
    min-height: 49px;
    padding: 8px 22px;
    border: 1px solid #9360B5;
    border-radius: 100px;
    color: #F1ECE5;
    background: #0D0D0F;
    text-decoration: none;
    font: 700 19px/1.3 Lora, Georgia, serif;
    transition: background-color .18s, color .18s, box-shadow .18s;
}
.ks-journey .ks-step a:hover, .ks-journey .ks-step a:focus-visible,
.ks-contact-form button:hover, .ks-contact-form button:focus-visible {
    color: #0D0D0F;
    background: #9360B5;
    box-shadow: 0 0 22px #9360B566;
    text-decoration: none;
}
.ks-j-home { padding-top: 0; }
.ks-j-home .ks-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(6px, 1.2vh, 17px);
    padding-block: 12px 0;
}
.ks-j-home .ks-hero-photo {
    order: -1;
    width: min(100%, 1110px);
}
.ks-j-home .ks-hero-photo img {
    width: 100%;
    height: min(53svh, 620px);
    object-fit: contain;
    object-position: center;
    mask-image: linear-gradient(to right,transparent,#000 8%,#000 92%,transparent),
        linear-gradient(to bottom,transparent,#000 9%,#000 85%,transparent);
    mask-composite: intersect;
}
.ks-journey.ks-j-home .ks-intro { align-items: center; text-align: center; gap: 9px; }
.ks-j-home .ks-intro h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.ks-journey.ks-j-home .ks-intro .ks-subtitle {
    color: #9360B5;
    order: -1;
    font-size: clamp(28px, 4.65vw, 68px);
    white-space: nowrap;
    letter-spacing: -.035em;
    line-height: 1.1;
    text-shadow: 0 2px 5px #0D0D0F;
}
.ks-journey.ks-j-home .ks-intro .ks-kicker {
    color: #F1ECE5;
    font-size: clamp(18px, 2.2vw, 30px);
    font-style: italic;
    line-height: 1.15;
    margin-top: 0;
}
.ks-j-home .ks-cta { display: none; }
.ks-bio-feature {
    display: grid;
    grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
    gap: clamp(35px, 6.1vw, 105px);
    align-items: center;
}
.ks-bio-portrait { margin: 0; }
.ks-bio-portrait img {
    display: block;
    width: 100%;
    max-height: 65svh;
    object-fit: contain;
    object-position: center;
}
.ks-bio-copy { max-width: 64ch; }
.ks-bio-copy p { margin: 0 0 14px; }
.ks-bio-copy p:first-of-type { color: #9360B5; font-size: clamp(20px, 1.65vw, 25px); font-weight: 700; }
.ks-bio-copy p:last-child { margin-bottom: 0; }
.ks-j-photos { --journey-top: clamp(20px, 3vw, 42px); }
.ks-exhibition {
    columns: 3;
    column-gap: clamp(12px, 2.8vw, 40px);
}
.ks-exhibition-photo { margin: 0 0 clamp(12px, 2vw, 30px); break-inside: avoid; }
.ks-exhibition-photo img { display: block; width: 100%; height: auto; }
.ks-j-videos { --journey-top: clamp(20px, 3vw, 38px); }
.ks-j-videos h1:not(.wp-block-heading) { margin-bottom: clamp(14px, 2vw, 26px); }
.ks-performance {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
    gap: clamp(22px, 5vw, 76px);
    align-items: center;
    padding-block: clamp(12px, 2vw, 26px) clamp(22px, 3vw, 38px);
}
.ks-performance + .ks-performance { border-top: 1px solid #9360B5; }
.ks-performance:nth-of-type(even) { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
.ks-performance:nth-of-type(even) .ks-preview-video { order: 2; }
.ks-performance h2 { font-size: clamp(27px, 3.2vw, 44px); margin: 4px 0 9px; }
.ks-performance-copy p { margin: 0 0 12px; }
.ks-performance-copy .ks-composer { font-weight: 700; font-size: 20px; color: #9360B5; }
.ks-performance-copy .ks-work { font-style: italic; }
.ks-preview-video { margin: 0; min-width: 0; }
.ks-preview-video > a, .ks-preview-video > iframe {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    border: 0;
    aspect-ratio: 17 / 9;
    background: #0D0D0F;
}
.ks-preview-video iframe { aspect-ratio: 16 / 9; }
.ks-preview-video iframe.ks-wide-player { aspect-ratio: 17 / 9; }
.ks-preview-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ks-play {
    position: absolute;
    width: 58px;
    height: 58px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0d0d0fbb;
    border: 1px solid #F1ECE5;
}
.ks-play::before {
    content: "";
    margin-left: 4px;
    border-left: 14px solid #F1ECE5;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}
.ks-preview-video a:hover .ks-play { background: #9360B5; }
.ks-contact-feature {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 6vw, 90px);
    align-items: start;
}
.ks-contact-feature figure { margin: 0; }
.ks-contact-feature img { display: block; width: 100%; max-height: 66svh; object-fit: contain; }
:lang(bg).ks-j-home .ks-intro .ks-subtitle,
:lang(bg) .ks-j-home .ks-intro .ks-subtitle { white-space: normal; }

.ks-contact-form { display: grid; gap: 24px; padding-block: 20px 40px; }
.ks-contact-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.ks-contact-form label { display: grid; gap: 7px; color: #9360B5; font-size: 20px; font-weight: 700; }
.ks-contact-form input, .ks-contact-form textarea {
    width: 100%;
    border: 1px solid #F1ECE5;
    color: #F1ECE5;
    background: #0D0D0F;
    padding: 11px 13px;
    border-radius: 2px;
    font: inherit;
}
.ks-contact-form input:focus, .ks-contact-form textarea:focus { outline: 2px solid #9360B5; outline-offset: 2px; }
.ks-contact-form button { justify-self: start; cursor: pointer; }
.ks-contact-form .ks-honeypot { position: absolute; left: -10000px; }
.ks-contact-result { padding: 12px 15px; border-left: 2px solid #9360B5; margin: 0; }
@media (max-width: 960px) {
    .ks-journey { width: calc(100% - 40px); }
}
@media (max-width: 740px) {
    .ks-journey { min-height: calc(100svh - 100px); }
    .ks-j-home .ks-hero, .ks-bio-feature, .ks-performance, .ks-performance:nth-of-type(even) {
        grid-template-columns: 1fr;
    }
    .ks-j-home .ks-hero { gap: 10px; }
    .ks-j-home .ks-hero-photo img { height: min(46svh, 470px); object-position: 52% 44%; }
    .ks-journey.ks-j-home .ks-intro .ks-subtitle { font-size: clamp(18px, 5.8vw, 42px); }
    .ks-journey.ks-j-home .ks-intro .ks-kicker { font-size: clamp(17px, 4.5vw, 25px); }
    .ks-exhibition { columns: 2; }
    .ks-contact-feature { grid-template-columns: 1fr; }
    .ks-contact-feature figure { order: 1; }
    .ks-contact-feature img { max-height: 46svh; }
    .ks-bio-feature { gap: 25px; }
    .ks-bio-portrait img { max-height: 58svh; object-position: left; }
    .ks-bio-copy h1 { margin-bottom: 17px; }
    .ks-performance:nth-of-type(even) .ks-preview-video { order: 0; }
}
@media (max-width: 390px) {
    .ks-contact-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ks-step a, .ks-contact-form button { transition: none; }
}


/* Match the display weight of the Latin headings in Bulgarian. */
html:lang(bg) .ks-journey:not(.ks-j-home) h1:not(.wp-block-heading) {
    font-family: Lora, Georgia, serif;
    font-weight: 700;
}


.ks-contact-feature:has(> .ks-contact-intro) {
    grid-template-areas: "portrait intro" "portrait form";
    grid-template-rows: auto 1fr;
    row-gap: 0;
}
.ks-contact-intro { grid-area: intro; }
.ks-contact-intro + figure { grid-area: portrait; }
.ks-contact-intro ~ section { grid-area: form; }

@media (max-width: 740px) {
    .ks-contact-feature:has(> .ks-contact-intro) {
        grid-template-areas: "intro" "portrait" "form";
        grid-template-rows: auto;
        row-gap: 24px;
    }
    .ks-contact-intro h1:not(.wp-block-heading) { margin-bottom: 8px; }
    .ks-contact-feature .ks-contact-intro + figure { order: 0; }
    .ks-contact-intro ~ section .ks-contact-form { padding-top: 0; }
}


html:lang(bg) .ks-journey.ks-j-home .ks-intro .ks-subtitle {
    font-family: Lora, Georgia, serif;
    font-weight: 700;
    -webkit-text-stroke: .012em currentColor;
}
