/* Shared header and video refinements for the English and Greek floor-addition pages. */
.po .po-intro { padding: 2.5rem 0 1.75rem; }
.po .po-hero { max-width: 100%; }
.po .po-hero h1 {
    max-width: 100%;
    margin: 0 0 1rem;
    color: var(--ink);
    font-family: "Barlow", sans-serif;
    font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.po .po-hero .po-sub {
    max-width: 68ch;
    margin: 0 0 1.25rem;
    font-family: "Barlow", sans-serif;
    font-size: clamp(1.05rem, .95rem + .3vw, 1.2rem);
    line-height: 1.55;
}
.po .po-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem 1.5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
    font-family: "Barlow", sans-serif;
}
.po .po-meta-row .po-meta { margin: 0; font-family: inherit; font-size: .875rem; line-height: 1.5; }
.po .po-language {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #8a3d14;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.po .po-language:hover { color: #54270f; }
.po .po-language:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.po .po-stage .po-video {
    border: 1px solid #e2d6c8;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(56, 30, 12, .07);
}
.po .po-stage .po-video-cap {
    margin: .85rem 0 0;
    max-width: 76ch;
    text-align: left;
    font-family: "Barlow", sans-serif;
    font-size: .95rem;
    line-height: 1.6;
}
.po .po-overview {
    max-width: 76ch;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: "Barlow", sans-serif;
    font-size: 1.05rem;
}
.po .po-overview p { font-family: inherit; line-height: 1.7; }
.po .po-overview .po-meta { margin-bottom: 0; font-size: .875rem; }
.po .po-project-photo {
    scroll-margin-top: 7rem;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin: 1.75rem 0 2.5rem;
}
.po .po-project-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}
.po .po-project-photo figcaption { font-family: "Barlow", sans-serif; }
.po .po-project-photo h3 { margin: 0 0 .85rem; font-family: inherit; font-size: 1.6rem; line-height: 1.25; }
.po .po-project-photo p { font-family: inherit; font-size: 1rem; line-height: 1.65; }
.po .po-project-photo .po-project-credit { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 767.98px) {
    .po .po-intro { padding: 1.5rem 0 1rem; }
    .po .po-crumbs { margin-bottom: 1.25rem; line-height: 1.6; }
    .po .po-hero h1 { max-width: none; }
    .po .po-hero .po-sub { margin-bottom: 1rem; }
    .po .po-stage .po-video { border-radius: 8px; box-shadow: none; }
    .po .po-overview { margin-top: 1.5rem; font-size: 1rem; }
    .po .po-project-photo { grid-template-columns: 1fr; gap: 1.25rem; margin: 1.5rem 0 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .po .po-chapters button, .po .po-chapters button::after { transition: none; }
    .po .po-chapters button:hover { transform: none; }
}

/* CLT vs reinforced concrete comparison: material icons, criterion icons, weight bar. */
.po-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.po .po-compare-wrap { margin-top: 1.5rem; }
.po .po-compare {
    --clt-bg: #fbf3e9;
    --clt-head: #f4e2cc;
    --clt-ink: #6b3a12;
    --rc-bg: #f3f3f2;
    --rc-head: #e6e5e2;
    --rc-ink: #45433f;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: "Barlow", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.po .po-compare th, .po .po-compare td {
    padding: 1rem 1.15rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}
.po .po-compare tbody tr:last-child th, .po .po-compare tbody tr:last-child td { border-bottom: 0; }
.po .po-compare thead th { padding: 1.15rem; border-bottom: 1px solid var(--line); }
.po .po-compare .po-c-crit { width: 30%; background: #fff; }
.po .po-compare thead .po-c-clt { background: var(--clt-head); }
.po .po-compare thead .po-c-rc { background: var(--rc-head); }
.po .po-compare tbody .po-c-clt { background: var(--clt-bg); color: var(--clt-ink); font-weight: 500; border-left: 3px solid var(--brand); }
.po .po-compare tbody .po-c-rc { background: var(--rc-bg); color: var(--rc-ink); }
.po .po-compare thead .po-c-clt { border-left: 3px solid var(--brand); }
.po .po-mat { display: flex; align-items: center; gap: .85rem; }
.po .po-mat-icon { flex: none; width: 52px; height: 52px; }
.po .po-mat-text { display: flex; flex-direction: column; }
.po .po-mat-text strong { font-weight: 500; font-size: 1.08rem; line-height: 1.25; color: var(--ink); }
.po .po-mat-text small { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.po .po-crit { display: flex; align-items: center; gap: .75rem; font-weight: 500; color: var(--ink); }
.po .po-crit-icon {
    flex: none;
    width: 36px;
    height: 36px;
    padding: 7px;
    border-radius: 50%;
    background: rgba(176, 80, 23, .1);
    color: var(--brand);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.po .po-bar { display: block; height: 6px; margin-top: .55rem; border-radius: 3px; background: rgba(0, 0, 0, .06); overflow: hidden; }
.po .po-bar > span { display: block; height: 100%; border-radius: 3px; }
.po .po-c-clt .po-bar > span { background: #c98d50; }
.po .po-c-rc .po-bar > span { background: #8f8b84; }

@media (max-width: 767.98px) {
    .po .po-compare, .po .po-compare tbody, .po .po-compare tr, .po .po-compare th, .po .po-compare td { display: block; width: auto; }
    .po .po-compare { border: 0; border-radius: 0; background: transparent; overflow: visible; }
    .po .po-compare thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .75rem; }
    .po .po-compare thead .po-c-crit { display: none; }
    .po .po-compare thead th { border: 0; border-radius: 10px; padding: .75rem; }
    .po .po-compare thead .po-c-clt { border-left: 0; box-shadow: inset 0 -3px 0 var(--brand); }
    .po .po-mat { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .po .po-mat-icon { width: 40px; height: 40px; }
    .po .po-mat-text strong { font-size: .95rem; }
    .po .po-mat-text small { font-size: .78rem; }
    .po .po-compare tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-bottom: .75rem;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow: hidden;
    }
    .po .po-compare tbody th { grid-column: 1 / -1; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
    .po .po-compare tbody tr:last-child th { border-bottom: 1px solid var(--line); }
    .po .po-compare tbody td { padding: .75rem .9rem; border-bottom: 0; font-size: .95rem; }
    .po .po-compare tbody .po-c-clt { border-left: 0; box-shadow: inset 0 3px 0 var(--brand); }
    .po .po-compare td::before { content: attr(data-label); display: block; margin-bottom: .2rem; font-size: .75rem; font-weight: 400; color: var(--muted); }
    .po .po-crit-icon { width: 32px; height: 32px; padding: 6px; }
}

/* Scroll reveal (js/floor-addition-page.js). Only active under html.po-motion, which the inline guard
 * sets when IntersectionObserver exists and the visitor has not asked for reduced motion. */
html.po-motion .po :where(.po-hero > *, .po-stage, .po-chapters li, .po-overview, .clt-section h2, .col-lg-10 > p,
    .po-facts li, .po-compare thead th, .po-compare tbody tr, .po-stages figure, .po-project-photo img,
    .po-project-photo figcaption, .po-case, .po-steps > li, .po-faq > div, .po-cta, .po-related li) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .85s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--po-d, 0ms);
}
/* Slide in from the sides: CLT from the left, concrete from the right, photo vs caption, steps. */
html.po-motion .po :where(.po-compare thead .po-c-clt, .po-project-photo img, .row > [class*="col-"]:first-child > .po-case, .po-steps > li) {
    transform: translate3d(-44px, 0, 0);
}
html.po-motion .po :where(.po-compare thead .po-c-rc, .po-project-photo figcaption, .row > [class*="col-"]:last-child > .po-case) {
    transform: translate3d(44px, 0, 0);
}
html.po-motion .po .po-compare thead .po-c-crit { transform: none; }
/* Elements waiting to slide in from the sides must not widen the page on phones. */
html.po-motion main.po { overflow-x: hidden; overflow-x: clip; }
html.po-motion .po .is-in { opacity: 1; transform: none; }
/* Weight bars grow once their row is in view. */
html.po-motion .po .po-compare .po-bar > span {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .35s;
}
html.po-motion .po .po-compare tr.is-in .po-bar > span { transform: none; }
@media print {
    html.po-motion .po * { opacity: 1 !important; transform: none !important; }
}
