﻿
/* InnKeeper's Living Window */

.hero .hero-character {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    position: relative;
    min-width: 0;
    background: none;
    padding: 0;
    margin: 0;
}

.hero .hero-character::before,
.hero .hero-character::after {
    display: none;
}

.living-window {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 650px;
    aspect-ratio: 1 / 1.13;
    filter: drop-shadow(0 15px 14px rgba(0,0,0,0.55));
}

/* Recessed interior */

.window-interior {
    position: absolute;
    inset: 5% 9% 9%;
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    overflow: hidden;
    background:
        linear-gradient(
            rgba(19,10,4,0.12),
            rgba(19,10,4,0.28)
        ),
        url("../images/innkeeper-interior-background.png")
        center / cover no-repeat;
    box-shadow: inset 0 0 35px #120a04;
    z-index: 1;
}

/* Character inside the window */

.hero-character .window-interior .window-character {
    position: absolute;
    bottom: -10%;
    left: 43%;
    transform: translateX(-50%);
    width: 93%;
    height: auto;
    max-width: none;
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
    filter: drop-shadow(5px 7px 10px rgba(0,0,0,0.35));
}

/* Independent architectural components */

.hero-character .living-window .window-piece {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
    height: auto;
    mask-image: none;
    -webkit-mask-image: none;
    filter: none;
    pointer-events: none;
}

.hero-character .living-window .window-crown {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.hero-character .living-window .window-side {
    width: 14%;
    bottom: 9%;
    z-index: 4;
}

.hero-character .living-window .window-side-left {
    left: 3%;
}

.hero-character .living-window .window-side-right {
    right: 3%;
    transform: scaleX(-1);
}

.hero-character .living-window .window-sill {
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 6;
}

/* Separate organic decoration */

.hero-character .living-window .window-ivy {
    width: 25%;
    top: 29%;
    z-index: 7;
}

.hero-character .living-window .window-ivy-left {
    left: -5%;
}

.hero-character .living-window .window-ivy-right {
    right: -5%;
    transform: scaleX(-1);
}

@media (max-width: 760px) {
    .living-window {
        max-width: 460px;
        margin: 20px auto 35px;
    }
}


/* Window support alignment */

.hero-character .living-window .window-side {
    width: 15.5%;
    bottom: 11%;
}

.hero-character .living-window .window-side-left {
    left: 5%;
}

.hero-character .living-window .window-side-right {
    right: 5%;
}

/* Follow the adjusted wooden supports */

.hero-character .living-window .window-ivy-left {
    left: -3%;
}

.hero-character .living-window .window-ivy-right {
    right: -3%;
}


/* Refine window support connections */

.hero-character .living-window .window-side {
    width: 15.5%;
    height: 43%;
    object-fit: fill;
    bottom: 12%;
}

.hero-character .living-window .window-side-left {
    left: 2.5%;
}

.hero-character .living-window .window-side-right {
    right: 2.5%;
}

.hero-character .living-window .window-ivy-left {
    left: -5.5%;
}

.hero-character .living-window .window-ivy-right {
    right: -5.5%;
}


/* Close the window's upper joints */

.hero-character .living-window .window-side {
    height: 46%;
}


/* Conceal window support joints */

.hero-character .living-window .window-side {
    height: 48%;
    bottom: 12%;
    clip-path: inset(4% 0 0 0);
}


/* Final window joint refinement */

.hero-character .living-window .window-side {
    height: 49.5%;
    bottom: 12%;
    clip-path: inset(7% 0 0 0);
}


/* Window width and side alignment */

.hero-character .living-window .window-sill {
    scale: 1.12 1;
}

.hero-character .living-window .window-side:nth-of-type(1) {
    /* Side positioning handled below */
}

.hero-character .living-window .window-side {
    translate: -50% 0;
}

.hero-character .living-window .window-side ~ .window-side {
    translate: 50% 0;
}


/* Fine-tune window side alignment */

.hero-character .living-window .window-side {
    translate: -35% 0;
}

.hero-character .living-window .window-side ~ .window-side {
    translate: 35% 0;
}

