@font-face {
    font-family: Sora;
    src: url("/assets/sora.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

.front {
    --display: Sora, Geist, Arial, sans-serif;
    --ink: #1d2922;
    --paper: #f7f5ee;
    --line: #d4d8ca;
    --gutter: clamp(1.1rem, 4.5vw, 5.3rem);
    --sage: #c5d6bc;
    background: var(--paper);
    font-family: Geist, Arial, sans-serif;
}

.front .masthead, .front .scene-hero { --wide: 1620px; }
.front .masthead { color: var(--ink); background: var(--paper); }
.front .topbar { border-color: #d8dfd0; color: #304638; background: #e8eee1; }
.front .topbar a, .front .topbar span { gap: .54rem; }
.front .topbar svg { flex: none; }
.front .topbar .emergency-link { color: #233f2d; }
.front .topbar .emergency-link svg, .front .topbar .topbar-right svg { color: #41694d; }
.front .topbar [href^="tel:"] { font-variant-numeric: tabular-nums; }
.front .site-header { border-color: #17251b1f; color: var(--ink); background: var(--paper); }
.front .site-header .brand img { filter: none; mix-blend-mode: multiply; }
.front .nav > a { color: #344239; }
.front .nav > a:hover, .front .nav > a[aria-current="page"] { color: #1a3725; }
.front .nav > a[aria-current="page"]::after { background: #507456; }

.front .nav-cta .button, .front .scene-hero .button.primary, .front .scene-hero .hero-secondary {
    min-height: 52px;
    gap: .68rem;
    justify-content: space-between;
    padding: .34rem .34rem .34rem 1.06rem;
    border: 1px solid #294434;
    border-radius: 100px;
    background: #263e30;
    color: #fffdf6;
    letter-spacing: -.012em;
}
.front .nav-cta .button:hover, .front .scene-hero .button.primary:hover { background: #365843; border-color: #365843; }
.front .button-end {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    color: #203b2a;
    background: color-mix(in srgb, var(--accent) 65%, #f6f4ed);
    transition: transform .24s ease, background .24s ease;
}
.front .button:hover > .button-end { transform: rotate(-13deg); background: #e5ecdd; }
.front .button { border-radius: .36rem; }

@media (min-width: 1041px) {
    .front { --topbar: 40px; --nav-height: 84px; }
    .front .topbar a, .front .topbar span { font-size: .85rem; font-weight: 650; }
    .front .nav { gap: clamp(1.05rem, 2.5vw, 2.85rem); }
    .front .nav > a { font-size: clamp(.93rem, 1.13vw, 1.025rem); }
    .front .site-header .brand img { width: 124px; }
    .front .nav-cta .button { min-height: 49px; font-size: .94rem; }
    .front .nav-cta .button-end { width: 34px; height: 34px; }
}
.front :where(a,button,input,select,textarea,summary):focus-visible { outline-color: #477449; }

.front .scene-hero {
    isolation: isolate;
    position: relative;
    display: grid;
    min-height: max(640px, calc(100svh - var(--topbar) - var(--nav-height) - 20px));
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    overflow: clip;
    color: var(--ink);
    background: #e9e8de;
}
.scene-images, .scene-image, .scene-veil { position: absolute; inset: 0; pointer-events: none; }
.scene-images { z-index: -2; overflow: hidden; }
.scene-image { opacity: 0; transition: opacity .54s ease .18s; }
.scene-image.is-active { z-index: 1; opacity: 1; transition: none; }
.scene-image.is-changing { animation: scene-crossing .7s cubic-bezier(.2,.7,.27,1) both; }
@keyframes scene-crossing {
    from { clip-path: polygon(92% 0,100% 0,100% 100%,75% 100%); opacity: .55; }
    to { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); opacity: 1; }
}
.scene-image picture, .front .scene-image .hero-poster { display: block; width: 100%; height: 100%; }
.front .scene-image .hero-poster { object-fit: cover; object-position: 62% 50%; transform: scale(1.045); }
.front .scene-image.is-active .hero-poster { animation: roof-open 1.25s cubic-bezier(.17,.65,.22,1) both; }
@keyframes roof-open {
    from { transform: scale(1.075) translateX(.8%); }
    to { transform: scale(1.045); }
}
.scene-veil {
    z-index: -1;
    background: linear-gradient(90deg, #f7f5eee8 0%, #f7f5eee1 22%, #f7f5eeb5 36%, #f7f5ee45 51%, transparent 68%);
}
.scene-body {
    min-width: 0;
    display: grid;
    grid-row: 1;
    position: relative;
    grid-template-rows: 1fr;
    padding-block: clamp(2.2rem, 5vh, 4.25rem) clamp(1rem, 2.6vh, 2rem);
}
.scene-copy {
    display: grid;
    grid-area: 1 / 1;
    grid-template-rows: 1fr auto;
    width: fit-content;
    max-width: min(100%, 54rem);
}
.scene-copy[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.scene-text { align-self: center; min-width: 0; }
.front .scene-hero .scene-title {
    font: 620 clamp(3.4rem, 6.22vw, 6.85rem)/1.02 var(--display);
    letter-spacing: -.05em;
    margin-left: -.043em;
    overflow-wrap: break-word;
}
.front .scene-hero .scene-title .accent-text {
    display: inline-block;
    color: #31513b;
    font-size: .7em;
    line-height: 1.08;
    letter-spacing: -.041em;
    font-weight: 540;
    margin: .08em 0 0 .018em;
}
.front .scene-hero .hero-eyebrow { color: #36533c; margin-bottom: clamp(.9rem, 2.3vw, 1.8rem); }
.front .scene-hero .hero-eyebrow > span { background: #496a4e; width: 24px; flex-basis: 24px; }
.front .scene-hero .hero-description {
    color: #34453a;
    max-width: 41ch;
    margin: clamp(.8rem, 2vw, 1.5rem) 0 0;
    font-weight: 540;
}
.front .scene-hero .actions { gap: .65rem .8rem; margin-top: clamp(1rem, 2.15vw, 1.72rem); }
.front .scene-hero .hero-secondary {
    border-color: #647a64;
    background: #faf9f2bb;
    color: #263e30;
}
.front .scene-hero .hero-secondary .button-end { background: #e6ebdf; }
.front .scene-hero .hero-secondary:hover { background: #fcfbf4; }

.scene-deck {
    grid-row: 2;
    background: #f7f5eef5;
    border-top: 1px solid #fff9;
    backdrop-filter: blur(16px);
}
.scene-rail { display: flex; gap: .8rem; align-items: center; }
.scene-tabs {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
}
.scene-tabs button {
    position: relative;
    background: transparent;
    color: #34483a;
    min-height: 58px;
    border: solid #223c2a25;
    border-width: 0 1px 0 0;
    padding: .55rem .65rem;
    font: 660 .94rem/1.3 Geist, Arial, sans-serif;
    overflow-wrap: anywhere;
    transition: background .25s ease, color .25s ease;
}
.scene-tabs button:first-child { border-left-width: 1px; }
.scene-tabs button:hover { background: #e7ece1; }
.scene-tabs button[aria-selected="true"] { color: #203e29; background: color-mix(in srgb, var(--accent) 39%, #f3f0e9); }
.scene-tabs button[aria-selected="true"]::after {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: #547757;
    content: "";
}
.scene-deck.is-counting button[aria-selected="true"]::after {
    transform-origin: left;
    animation: scene-countdown var(--scene-interval, 9s) linear both;
}
@keyframes scene-countdown { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scene-tabs button:focus-visible { z-index: 1; outline-offset: -4px; }
.scene-rotation {
    order: 1;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #a2b3a0;
    border-radius: 50%;
    background: #e6ede0;
    color: #294334;
}
.scene-rotation:hover { background: #d8e5d1; }
.scene-rotation span { grid-area: 1 / 1; }
.scene-rotation svg { display: block; }
.scene-rotation .scene-pause, .scene-deck.is-playing .scene-play { display: none; }
.scene-deck.is-playing .scene-pause { display: block; }

.front .trust-strip { border-top: 1px solid #344a3626; color: #243b2c; background: #e3ebdd; }
.front .trust-icon { color: #365941; border-color: #95ab95; border-radius: 50%; }
.front .trust-item div span { color: #475e4c; }
.front .trust-item strong { color: #21392b; }
.front--home .split-section { background: #e7eadf; }
.front--home .split-section h2 { font-size: clamp(2.1rem, 4.2vw, 4.7rem); }
@media (min-width: 661px) {
    .front--home .split-grid { grid-template-columns: minmax(0,1.03fr) minmax(0,.97fr); gap: clamp(2rem, 6vw, 6.2rem); }
}
.front .split-image img { border-radius: .3rem; }
.front .split-grid { align-items: center; }
.front .section h2, .front .alert-section h2 { letter-spacing: -.052em; text-wrap: balance; }
.front .material-photo { border-radius: .3rem; }
.front .hero-page.hero-with-media .hero-layout {
    min-height: min(715px, calc(100svh - var(--topbar) - var(--nav-height)));
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    padding-block: clamp(2.75rem, 5.6vw, 6rem);
}
.front .hero-page.hero-with-media .hero-copy { display: block; }
.front .hero-page.hero-with-media .hero-detail { margin-top: clamp(1.25rem, 2.3vw, 2rem); }
.front .hero-page.hero-with-media h1 { font-size: clamp(3.1rem, 5.3vw, 6.05rem); font-weight: 600; line-height: 1.04; letter-spacing: -.05em; }
.front .hero-page.hero-with-media h1 .accent-text { font-size: .51em; }
.front .hero-page .hero-visual { width: auto; margin: 0; background: #e2e8dd; border-radius: .3rem; }
.front .hero-page .hero-visual .hero-poster { height: clamp(320px, 37.5vw, 590px); object-position: center; border-radius: inherit; }
.front .hero-page.hero-with-media .hero-visual::before {
    position: absolute;
    z-index: -1;
    inset: 1.05rem -1.05rem -1.05rem 1.05rem;
    border: 1px solid #8ca08c;
    border-radius: .3rem;
    content: "";
}
.front .hero-page.hero-with-media .hero-visual { z-index: 0; }

.front:is([data-page="rieten-daken"], [data-page="dakramen"], [data-page="dakkapellen"]) .hero-page { background: #eeefe5; }
@media (min-width: 821px) {
    .front:is([data-page="rieten-daken"], [data-page="dakramen"], [data-page="dakkapellen"]) .hero-page .hero-layout {
        grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
    }
    .front:is([data-page="rieten-daken"], [data-page="dakramen"], [data-page="dakkapellen"]) .hero-page .hero-visual {
        grid-area: 1 / 1;
    }
    .front:is([data-page="rieten-daken"], [data-page="dakramen"], [data-page="dakkapellen"]) .hero-page .hero-visual::before {
        inset-inline: -1.05rem 1.05rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .front .scene-copy { animation: copy-enter .65s cubic-bezier(.2,.7,.3,1) both; }
    .front .hero-page .hero-visual picture { overflow: hidden; border-radius: inherit; }
    .front .hero-page .hero-visual .hero-poster { animation: detail-enter .82s cubic-bezier(.2,.7,.3,1) both; }
    @keyframes copy-enter {
        from { opacity: .76; transform: translateY(14px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes detail-enter {
        from { opacity: .82; transform: scale(1.032); }
        to { opacity: 1; transform: scale(1); }
    }
    .front main > .section > .wrap { transition: opacity .6s ease, transform .6s ease; }
    .front .reveal-pending > .wrap { opacity: .78; transform: translateY(16px); }
}
@media (max-width: 820px) {
    .front .scene-hero { min-height: 0; }
    .scene-body { min-height: clamp(450px, 76vw, 610px); }
    .scene-veil { background: linear-gradient(180deg, #f7f5eef7 0%, #f7f5eee8 24%, #f7f5eeab 47%, #f7f5ee26 71%, transparent 84%); }
    .front .scene-image .hero-poster { object-position: 66% 55%; }
    .front .scene-hero .scene-title { font-size: clamp(2.96rem, 9.35vw, 5.15rem); }
    .scene-rail { gap: .6rem; }
    .scene-tabs button { min-height: 49px; font-size: .84rem; }
    .front .hero-page.hero-with-media .hero-layout { min-height: 0; grid-template-columns: 1fr; gap: 1.6rem; }
    .front .hero-page.hero-with-media h1 { font-size: clamp(2.8rem, 9.6vw, 5.05rem); }
    .front .hero-page .hero-visual .hero-poster { height: clamp(237px, 58vw, 430px); }
    .front .hero-page.hero-with-media .hero-visual::before { inset: .6rem -.6rem -.6rem .6rem; }
}
@media (max-width: 660px) {
    .front { --gutter: clamp(1rem, 4.65vw, 1.37rem); }
    .front .scene-hero {
        grid-template-rows: 1fr;
        min-height: 390px;
        min-height: max(390px, calc(100dvh - var(--topbar) - var(--nav-height) - var(--mobile-action-height) - 2px));
    }
    .scene-body { min-height: 0; padding-block: clamp(1.5rem, 4vh, 2.5rem) .85rem; }
    .scene-text { align-self: start; }
    .scene-deck, .front .scene-hero .button.primary { display: none; }
    .front .scene-hero .scene-title { font-size: clamp(2.34rem, 12vw, 4.4rem); letter-spacing: -.048em; }
    .front .scene-hero .hero-description { max-width: 35ch; }
    .front .scene-hero .hero-secondary {
        min-height: 44px;
        padding: .23rem .25rem .23rem .62rem;
        gap: .38rem;
        background: #fcfbf4ed;
    }
    .front .scene-hero .button-end { width: 31px; height: 31px; }
    .front .scene-hero .button-end svg { width: 15px; }
    .front .trust-item, .front .trust-item:first-child { border-color: #aabda9; }
    .mobile-actions { background: #f7f5eef5; border-color: #a9baa8; }
    .front .mobile-actions a.outline { color: #293f31; border-color: #8eaa92; }
    .front .mobile-actions a.outline:hover { background: #e2ebdc; }
    .front .mobile-actions a.primary { color: #fffef9; background: #283f31; }
}
@media (prefers-reduced-motion: reduce) {
    .scene-image, .scene-tabs button { transition: none; }
    .scene-deck.is-counting button[aria-selected="true"]::after { animation: none; }
    .scene-image.is-changing, .front .scene-image.is-active .hero-poster { animation: none; }
}
