/* Tufa cinematic hero — isolated from the theme. */
.tufa-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100svh;
    min-height: 680px;
    max-height: 1400px;
    overflow: hidden;
    background: #171b13;
    color: #fff;
    touch-action: pan-y;
    --tufa-gold: #dfc79b;
    --tufa-px: 0px;
    --tufa-py: 0px;
    outline-offset: -4px;
}
.tufa-scenes,
.tufa-scene,
.tufa-photo,
.tufa-shade,
.tufa-grain {
    position: absolute;
    inset: 0;
}
.tufa-scene {
    visibility: hidden;
    overflow: hidden;
    z-index: 0;
}
.tufa-scene.is-active {
    visibility: visible;
    z-index: 1;
}
.tufa-scene.is-entering {
    visibility: visible;
    z-index: 2;
}
.tufa-photo {
    inset: -3%;
    transform: translate(var(--tufa-px), var(--tufa-py));
    transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tufa-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: none;
    transform: scale(1.04);
}
.tufa-shade {
    background: linear-gradient(
            90deg,
            rgba(9, 15, 10, 0.58),
            rgba(9, 15, 10, 0.13) 80%
    ),
    linear-gradient(
            0deg,
            rgba(9, 15, 10, 0.78),
            transparent 40%,
            rgba(9, 15, 10, 0.12) 80%
    );
    pointer-events: none;
}
.tufa-copy {
    position: absolute;
    left: clamp(26px, 7.3vw, 160px);
    right: 6%;
    top: 50%;
    transform: translateY(-40%);
    max-width: 1050px;
}
.tufa-hero .tufa-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font: 10px/1.5 Arial, sans-serif;
    letter-spacing: 0.28em;
    color: #f4ebdc;
    margin: 0 0 25px;
}
.tufa-eyebrow > span {
    width: 36px;
    height: 1px;
    background: var(--tufa-gold);
}
.tufa-hero .tufa-title {
    font-family: Canela, "Cormorant Garamond", Georgia, serif;
    font-size: clamp(64px, 7.4vw, 138px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.02;
    color: #fff;
    margin: 0 0 26px;
    text-shadow: 0 2px 24px #0002;
}
.tufa-title > span {
    display: block;
}
.tufa-title em {
    font-weight: 400;
    color: #f4e4c7;
}
.tufa-hero .tufa-description {
    font: 15px/1.8 Arial, sans-serif;
    max-width: 420px;
    color: #eee9e0;
    margin: 0 0 26px;
}
.tufa-hero .tufa-link {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    padding: 9px 0 12px;
    border-bottom: 1px solid #ffffff70;
    color: #fff;
    font: 11px/1.4 Arial, sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s, gap 0.3s;
}
.tufa-hero .tufa-link:hover {
    color: var(--tufa-gold);
    gap: 52px;
}
.tufa-link > span {
    font-size: 24px;
}
.tufa-grain {
    z-index: 3;
    opacity: 0.045;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.tufa-bottom {
    position: absolute;
    z-index: 4;
    bottom: 34px;
    left: 7.3%;
    right: 7.3%;
    display: flex;
    align-items: center;
    gap: 55px;
}
.tufa-counter {
    display: flex;
    align-items: center;
    gap: 14px;
    font: 12px Arial, sans-serif;
    letter-spacing: 0.08em;
    color: #ffffff80;
}
.tufa-counter [data-tufa-current] {
    font: 28px Georgia, serif;
    color: #fff;
}
.tufa-counter-line {
    width: 32px;
    height: 1px;
    background: #ffffff70;
}
.tufa-chapters {
    display: flex;
    gap: 25px;
    flex: 1;
    max-width: 630px;
    margin: auto;
}
.tufa-hero button {
    cursor: pointer;
    color: inherit;
    background: none;
    border: 0;
}
.tufa-hero button:focus-visible,
.tufa-hero a:focus-visible {
    outline: 2px solid var(--tufa-gold);
    outline-offset: 6px;
}
.tufa-hero .tufa-chapter {
    position: relative;
    flex: 1;
    text-align: left;
    white-space: nowrap;
    font: 9px/1.4 Arial, sans-serif;
    letter-spacing: 0.16em;
    padding: 12px 0 15px;
    color: #ffffff85;
    transition: color 0.4s;
}
.tufa-chapter > span {
    margin-right: 8px;
    font-size: 8px;
}
.tufa-hero .tufa-chapter.is-active {
    color: #fff;
}
.tufa-chapter i {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ffffff35;
    overflow: hidden;
}
.tufa-chapter b {
    display: block;
    width: 100%;
    height: 100%;
    background: #ead6b4;
    transform: scaleX(0);
    transform-origin: left;
}
.tufa-controls {
    display: flex;
    gap: 9px;
    align-items: center;
}
.tufa-hero .tufa-controls button {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid #ffffff50;
    border-radius: 50%;
    font: 22px Arial, sans-serif;
    transition: background 0.3s;
}
.tufa-hero .tufa-controls button:hover {
    background: #ffffff20;
}
.tufa-hero .tufa-controls [data-tufa-pause] {
    width: 32px;
    height: 32px;
    border: 0;
    font-size: 13px;
}
.tufa-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
@media (min-width: 1600px) {
    .tufa-copy {
        max-width: 1250px;
    }
}
@media (max-width: 767px) {
    .tufa-hero {
        min-height: 640px;
        max-height: none;
    }
    .tufa-copy {
        left: 25px;
        right: 23px;
        top: 46%;
        transform: translateY(-32%);
    }
    .tufa-hero .tufa-title {
        font-size: clamp(48px, 10.3vw, 76px);
        line-height: 1.06;
        margin-bottom: 20px;
    }
    .tufa-hero .tufa-eyebrow {
        font-size: 8px;
        letter-spacing: 0.2em;
        margin-bottom: 21px;
    }
    .tufa-hero .tufa-description {
        font-size: 13px;
        max-width: 285px;
        margin-bottom: 19px;
    }
    .tufa-hero .tufa-link {
        font-size: 9px;
    }
    .tufa-bottom {
        left: 25px;
        right: 25px;
        bottom: 24px;
        flex-wrap: wrap;
        gap: 18px;
        justify-content: space-between;
    }
    .tufa-chapters {
        order: 3;
        flex-basis: 100%;
        gap: 15px;
        max-width: none;
    }
    .tufa-counter {
        gap: 10px;
    }
    .tufa-hero .tufa-chapter {
        font-size: 8px;
        letter-spacing: 0.08em;
    }
    .tufa-chapter > span {
        margin-right: 3px;
    }
    .tufa-shade {
        background: linear-gradient(90deg, #09110b80, #09110b20),
        linear-gradient(0deg, #09110bcc, transparent 65%);
    }
    .tufa-scene:nth-child(2) img {
        object-position: 57% center;
    }
    .tufa-scene:nth-child(4) img {
        object-position: 65% center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .tufa-photo,
    .tufa-link {
        transition: none !important;
    }
}

/* Scroll edition: align the contents with the existing header. */
.tufa-scroll-hero {
    --tufa-content-left: max(24px, calc((100% - 1290px) / 2));
    --tufa-content-right: var(--tufa-content-left);
    --tufa-content-width: 1290px;
}
.tufa-scroll-hero .tufa-copy {
    left: var(--tufa-content-left);
    right: var(--tufa-content-right);
    max-width: none;
    top: 46%;
    transform: translateY(-40%);
}
.tufa-scroll-hero .tufa-title {
    font-size: clamp(44px, calc(var(--tufa-content-width) * 0.088), 125px);
    overflow-wrap: break-word;
}
.tufa-scroll-hero .tufa-bottom {
    left: var(--tufa-content-left);
    right: var(--tufa-content-right);
    bottom: 88px;
    gap: 30px;
}
.tufa-scroll-hero .tufa-controls [data-tufa-pause] {
    display: none !important;
}
.tufa-scroll-hero .tufa-utility {
    position: absolute;
    z-index: 4;
    left: var(--tufa-content-left);
    right: var(--tufa-content-right);
    bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}
.tufa-scroll-hero .tufa-languages,
.tufa-scroll-hero .tufa-utility-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font: 10px/1.5 Arial, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff60;
}
.tufa-scroll-hero .tufa-languages button {
    font: inherit;
    letter-spacing: inherit;
    padding: 8px 0;
    color: #ffffff80;
    background: none;
    border: 0;
    cursor: pointer;
}
.tufa-scroll-hero .tufa-languages button[aria-pressed="true"] {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
}
.tufa-scroll-hero .tufa-utility-links a {
    color: #eee8dc;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}
.tufa-scroll-hero .tufa-utility-links a:hover {
    color: #dfc79b;
}
@media (max-width: 1000px) {
    .tufa-scroll-hero .tufa-bottom {
        gap: 20px;
    }
    .tufa-scroll-hero .tufa-chapters {
        gap: 15px;
    }
}
@media (max-width: 767px) {
    .tufa-scroll-hero .tufa-copy {
        top: 44%;
    }
    .tufa-scroll-hero .tufa-title {
        font-size: clamp(36px, calc(var(--tufa-content-width) * 0.12), 67px);
    }
    .tufa-scroll-hero .tufa-description {
        font-size: 13px;
    }
    .tufa-scroll-hero .tufa-bottom {
        bottom: 78px;
        gap: 14px;
    }
    .tufa-scroll-hero .tufa-chapters {
        display: none;
    }
    .tufa-scroll-hero .tufa-utility {
        bottom: 23px;
        gap: 12px;
    }
    .tufa-scroll-hero .tufa-languages,
    .tufa-scroll-hero .tufa-utility-links {
        font-size: 8px;
        letter-spacing: 0.06em;
        gap: 8px;
    }
}
@media (max-width: 767px) {
    .tufa-scroll-hero .tufa-languages,
    .tufa-scroll-hero .tufa-utility-links {
        gap: 6px;
        font-size: 8px;
        letter-spacing: 0;
    }
    .tufa-scroll-hero .tufa-utility {
        gap: 8px;
    }
}
@media (max-width: 360px) {
    .tufa-scroll-hero .tufa-utility {
        flex-wrap: wrap;
        row-gap: 0;
    }
    .tufa-scroll-hero .tufa-utility-links {
        margin-left: auto;
    }
}
