/* ==========================================================================
   TWO FARM TOURS — COMPONENTS
   Nav, buttons, cards, forms, footer, ticker, accordion, gallery.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SCROLL PROGRESS
   -------------------------------------------------------------------------- */
.tft-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    z-index: calc(var(--z-nav) + 5);
    background: transparent;
    pointer-events: none;
}

.tft-progress-bar {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--rust-600), var(--rust-400) 55%, var(--gold-400));
}

/* --------------------------------------------------------------------------
   2. HEADER / NAV
   --------------------------------------------------------------------------
   A light bone bar on every page, so the dark-ink logo lockup always reads.
   It condenses and picks up a shadow once the page is scrolled.
   -------------------------------------------------------------------------- */
.tft-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-nav);
    background: rgba(250, 245, 238, 0.92);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border-bottom: 1px solid var(--c-rule);
    color: var(--c-text);
    transition:
        background-color var(--t-mid) var(--ease-out),
        backdrop-filter var(--t-mid) var(--ease-out),
        box-shadow var(--t-mid) var(--ease-out),
        transform var(--t-mid) var(--ease-out);
}

.tft-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    max-width: var(--w-wide);
    margin-inline: auto;
    padding: clamp(0.6rem, 0.4rem + 0.9vw, 1.35rem) var(--gutter);
    transition: padding var(--t-mid) var(--ease-out);
}

/* Condensed state */
.tft-header.is-stuck {
    background: rgba(250, 245, 238, 0.97);
    box-shadow: 0 1px 0 var(--c-rule), 0 8px 26px rgba(45, 26, 14, 0.1);
}

.tft-header.is-stuck .tft-header-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Hide on scroll-down, reveal on scroll-up */
.tft-header.is-hidden {
    transform: translateY(-102%);
}

/* Kept for templates that still request an explicitly solid bar. */
.tft-header--solid {
    background: rgba(250, 245, 238, 0.96);
}

/* --- Logo --------------------------------------------------------------- */
.tft-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    color: var(--c-text);
}

.tft-logo img {
    height: clamp(40px, 3.4vw, 52px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: height var(--t-mid) var(--ease-out);
}

.tft-header.is-stuck .tft-logo img {
    height: clamp(34px, 2.8vw, 42px);
}

.tft-logo-type {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.tft-logo-name {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-variation-settings: var(--wonk-on);
}

.tft-logo-sub {
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--rust-600);
    margin-top: 0.34em;
    white-space: nowrap;
}

/* --- Desktop menu -------------------------------------------------------- */
.tft-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 0.4rem + 1.6vw, 2.3rem);
}

.tft-nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 0.3rem + 1.4vw, 2rem);
}

.tft-nav-menu > li {
    position: relative;
}

.tft-nav-menu > li > a {
    display: inline-block;
    position: relative;
    padding: 0.5rem 0;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-soft);
    transition: color var(--t-fast) var(--ease-out);
    white-space: nowrap;
}

/* Underline wipes in from the left. */
.tft-nav-menu > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.15rem;
    width: 100%;
    height: 1px;
    background: var(--rust-500);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--t-mid) var(--ease-out);
}

.tft-nav-menu > li > a:hover,
.tft-nav-menu > li.current-menu-item > a {
    color: var(--c-text);
}

.tft-nav-menu > li > a:hover::after,
.tft-nav-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Sub-menus */
.tft-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 12rem;
    padding: 0.5rem;
    background: var(--bone-050);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), visibility var(--t-fast);
}

.tft-nav-menu > li:hover > .sub-menu,
.tft-nav-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.tft-nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    transition: background var(--t-fast), color var(--t-fast);
}

.tft-nav-menu .sub-menu a:hover {
    background: rgba(196, 84, 42, 0.12);
    color: var(--rust-600);
}

/* --- Hamburger ---------------------------------------------------------- */
.tft-burger {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    flex: none;
    border: 1px solid var(--c-rule-strong);
    border-radius: 50%;
    color: var(--c-text);
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.tft-burger:hover {
    border-color: var(--rust-500);
    background: rgba(196, 84, 42, 0.1);
}

/* The drawer behind it is deep, so the button flips to bone while open. */
.tft-burger.is-open {
    border-color: var(--c-rule-invert-strong);
    color: var(--bone-100);
    background: transparent;
}

.tft-burger.is-open:hover {
    border-color: var(--gold-400);
    background: rgba(227, 180, 99, 0.12);
}

.tft-burger span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}

.tft-burger span:nth-child(1) {
    transform: translate(-50%, -5px);
}

.tft-burger span:nth-child(2) {
    transform: translate(-50%, 0);
}

.tft-burger span:nth-child(3) {
    transform: translate(-50%, 5px);
}

.tft-burger.is-open span:nth-child(1) {
    transform: translate(-50%, 0) rotate(45deg);
}

.tft-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.tft-burger.is-open span:nth-child(3) {
    transform: translate(-50%, 0) rotate(-45deg);
}

@media (max-width: 1000px) {
    .tft-nav-desktop {
        display: none;
    }

    .tft-burger {
        display: block;
    }
}

/*
 * The drawer stacks above the header, so while it is open the bar is lifted
 * over it — otherwise the close button sits underneath and cannot be tapped.
 * The bar itself goes transparent so the drawer sweep is uninterrupted.
 */
body.is-locked .tft-header {
    z-index: calc(var(--z-drawer) + 1);
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.is-locked .tft-header .tft-logo {
    opacity: 0;
    pointer-events: none;
}

/* --- Mobile drawer ------------------------------------------------------ */
.tft-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    display: flex;
    flex-direction: column;
    padding: 6rem var(--gutter) var(--sp-2xl);
    background: var(--ink-900);
    /* Circular sweep out of the burger button. */
    clip-path: circle(0% at calc(100% - 3.5rem) 3rem);
    transition: clip-path 700ms var(--ease-in-out);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tft-drawer.is-open {
    clip-path: circle(150% at calc(100% - 3.5rem) 3rem);
}

.tft-drawer::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: radial-gradient(100% 100% at 50% 100%, rgba(196, 84, 42, 0.26), transparent 70%);
    pointer-events: none;
}

.tft-drawer-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-top: 1px solid var(--c-rule-invert);
}

.tft-drawer-menu li {
    border-bottom: 1px solid var(--c-rule-invert);
    overflow: hidden;
}

.tft-drawer-menu a {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.1rem + 3.2vw, 2.5rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--bone-100);
    font-variation-settings: var(--wonk-on);
    transform: translateY(110%);
    transition: transform 620ms var(--ease-out), color var(--t-fast);
    transition-delay: var(--i-delay, 0ms);
}

.tft-drawer.is-open .tft-drawer-menu a {
    transform: translateY(0);
}

.tft-drawer-menu a:hover {
    color: var(--gold-400);
}

.tft-drawer-foot {
    position: relative;
    margin-top: auto;
    padding-top: var(--sp-2xl);
    display: grid;
    justify-items: start;
    gap: var(--sp-lg);
}

/* The grid gap sets the rhythm here, so the socials drop their own margin. */
.tft-drawer-foot .tft-socials {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */
.tft-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65em;
    padding: 0.95em 1.9em;
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    text-align: center;
    border-radius: var(--r-pill);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.tft-btn:active {
    transform: translateY(1px) scale(0.99);
}

.tft-btn svg {
    flex: none;
    width: 1em;
    height: 1em;
    transition: transform var(--t-mid) var(--ease-out);
}

.tft-btn:hover svg {
    transform: translateX(3px);
}

/* Fill sweeps up from the bottom on hover. */
.tft-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: translateY(101%);
    transition: transform var(--t-mid) var(--ease-out);
}

.tft-btn:hover::before {
    transform: translateY(0);
}

/* Primary — dune rust */
.tft-btn--primary {
    background: var(--rust-500);
    color: var(--bone-100);
    box-shadow: var(--sh-glow);
}

.tft-btn--primary::before {
    background: var(--ink-900);
}

.tft-btn--primary:hover {
    color: var(--bone-100);
    box-shadow: 0 16px 44px rgba(196, 84, 42, 0.34);
    transform: translateY(-2px);
}

/* Gold — for use on deep bands */
.tft-btn--gold {
    background: var(--gold-400);
    color: var(--ink-900);
}

.tft-btn--gold::before {
    background: var(--bone-100);
}

.tft-btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(227, 180, 99, 0.3);
}

/* Ghost on light */
.tft-btn--ghost {
    border: 1px solid var(--c-rule-strong);
    color: var(--c-text);
}

.tft-btn--ghost::before {
    background: var(--ink-900);
}

.tft-btn--ghost:hover {
    color: var(--bone-100);
    border-color: var(--ink-900);
}

/* Ghost on deep */
.tft-btn--ghost-invert {
    border: 1px solid var(--c-rule-invert-strong);
    color: var(--bone-100);
}

.tft-btn--ghost-invert::before {
    background: var(--bone-100);
}

.tft-btn--ghost-invert:hover {
    color: var(--ink-900);
    border-color: var(--bone-100);
}

.tft-btn--sm {
    padding: 0.7em 1.35em;
    font-size: 0.66rem;
}

.tft-btn--lg {
    padding: 1.15em 2.4em;
}

.tft-btn--block {
    width: 100%;
}

/* WhatsApp — the primary booking channel for this operator. */
.tft-btn--whatsapp {
    background: #1faa53;
    color: #fff;
}

.tft-btn--whatsapp::before {
    background: #17803e;
}

.tft-btn--whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(31, 170, 83, 0.32);
}

/* --- Arrow link --------------------------------------------------------- */
.tft-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-accent);
    padding-bottom: 0.3em;
    border-bottom: 1px solid currentColor;
    transition: gap var(--t-mid) var(--ease-out), color var(--t-fast);
}

.tft-arrow-link:hover {
    gap: 1.1em;
    color: var(--c-accent-deep);
}

.tft-band-ink .tft-arrow-link,
.tft-band-ink-alt .tft-arrow-link {
    color: var(--gold-400);
}

.tft-band-ink .tft-arrow-link:hover,
.tft-band-ink-alt .tft-arrow-link:hover {
    color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   4. PILLS / BADGES / META
   -------------------------------------------------------------------------- */
.tft-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.42em 0.9em;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    border-radius: var(--r-pill);
    border: 1px solid var(--c-rule);
    background: rgba(255, 255, 255, 0.6);
    color: var(--c-text-soft);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tft-pill--invert {
    border-color: var(--c-rule-invert-strong);
    background: rgba(10, 13, 17, 0.42);
    color: var(--c-text-invert-soft);
}

.tft-pill--accent {
    background: var(--rust-500);
    border-color: transparent;
    color: var(--bone-100);
}

.tft-pill--gold {
    background: var(--gold-400);
    border-color: transparent;
    color: var(--ink-900);
}

/* Icon + label meta row (duration, group size, meals…). */
.tft-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md) var(--sp-lg);
}

.tft-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
}

.tft-meta-item svg {
    width: 1.05em;
    height: 1.05em;
    flex: none;
    color: var(--c-accent);
}

.tft-band-ink .tft-meta-item,
.tft-band-ink-alt .tft-meta-item {
    color: var(--c-text-invert-soft);
}

.tft-band-ink .tft-meta-item svg,
.tft-band-ink-alt .tft-meta-item svg {
    color: var(--gold-400);
}

/* --------------------------------------------------------------------------
   5. TOUR CARD — the "expedition dossier"
   --------------------------------------------------------------------------
   Reads like a field document: coordinates at the top, a big photo, the
   route name, then a data row of prices in all three currencies.
   -------------------------------------------------------------------------- */
.tft-tour-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bone-050);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), border-color var(--t-mid);
    height: 100%;
}

.tft-tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--rust-300);
}

.tft-tour-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-700);
}

.tft-tour-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.tft-tour-card:hover .tft-tour-card-media img {
    transform: scale(1.07);
}

/* Rust wash wipes up over the photo on hover. */
.tft-tour-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(163, 65, 29, 0.5));
    opacity: 0;
    transition: opacity var(--t-slow) var(--ease-out);
    pointer-events: none;
}

.tft-tour-card:hover .tft-tour-card-media::after {
    opacity: 1;
}

.tft-tour-card-tag {
    position: absolute;
    top: var(--sp-md);
    left: var(--sp-md);
    z-index: 2;
}

.tft-tour-card-coord {
    position: absolute;
    bottom: var(--sp-md);
    left: var(--sp-md);
    z-index: 2;
    color: rgba(250, 245, 238, 0.82);
    text-shadow: 0 1px 6px rgba(10, 13, 17, 0.6);
}

.tft-tour-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--sp-md);
    padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
}

.tft-tour-card-title {
    font-size: var(--fs-h4);
    line-height: 1.14;
}

.tft-tour-card-title a {
    transition: color var(--t-fast);
}

.tft-tour-card:hover .tft-tour-card-title a {
    color: var(--c-accent);
}

.tft-tour-card-excerpt {
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    margin: 0;
}

/* Price row — three currencies, tabular, like an exchange board. */
.tft-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 1.1rem;
    margin-top: auto;
    padding-top: var(--sp-md);
    border-top: 1px solid var(--c-rule);
}

.tft-price-main {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--c-text);
    line-height: 1;
}

.tft-price-alt {
    font-size: var(--fs-sm);
    color: var(--c-text-faint);
    font-variant-numeric: tabular-nums;
}

.tft-price-unit {
    font-size: var(--fs-micro);
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-faint);
    width: 100%;
}

/* Whole-card click target without nesting interactive elements. */
.tft-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.tft-card-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* --------------------------------------------------------------------------
   6. DESTINATION TILE — tall photo, name rises on hover
   -------------------------------------------------------------------------- */
.tft-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--ink-700);
    isolation: isolate;
}

.tft-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease-out), filter var(--t-slow);
}

.tft-tile:hover img {
    transform: scale(1.08);
}

.tft-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 17, 0.1) 0%, rgba(10, 13, 17, 0.05) 40%, rgba(10, 13, 17, 0.8) 100%);
    transition: opacity var(--t-slow);
    pointer-events: none;
}

.tft-tile-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: clamp(1.1rem, 0.8rem + 1.2vw, 1.75rem);
    color: var(--bone-100);
}

.tft-tile-title {
    font-size: var(--fs-h4);
    line-height: 1.1;
    color: var(--bone-100);
}

/* The description is hidden until hover, then slides up. */
.tft-tile-desc {
    display: block;
    font-size: var(--fs-sm);
    color: rgba(250, 245, 238, 0.76);
    margin-top: 0.4rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition: max-height var(--t-slow) var(--ease-out), opacity var(--t-slow), transform var(--t-slow) var(--ease-out);
}

.tft-tile:hover .tft-tile-desc,
.tft-tile:focus-visible .tft-tile-desc {
    max-height: 6rem;
    opacity: 1;
    transform: translateY(0);
}

/* Gold rule that draws itself in on hover. */
.tft-tile-rule {
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 0.85rem;
    background: var(--gold-400);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--t-slow) var(--ease-out);
}

.tft-tile:hover .tft-tile-rule {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   7. FEATURE / SERVICE CARD
   -------------------------------------------------------------------------- */
.tft-feature {
    position: relative;
    padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
    background: var(--bone-050);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), border-color var(--t-mid);
    height: 100%;
}

.tft-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-md);
    border-color: var(--rust-300);
}

/* A faint rising sun in the corner of each card. */
.tft-feature::before {
    content: '';
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 180, 99, 0.3), transparent 68%);
    opacity: 0;
    transition: opacity var(--t-slow) var(--ease-out);
    pointer-events: none;
}

.tft-feature:hover::before {
    opacity: 1;
}

.tft-feature-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--sp-lg);
    border-radius: 50%;
    background: rgba(196, 84, 42, 0.1);
    color: var(--c-accent);
    transition: background var(--t-mid), transform var(--t-mid) var(--ease-spring);
}

.tft-feature-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.tft-feature:hover .tft-feature-icon {
    background: var(--rust-500);
    color: var(--bone-100);
    transform: rotate(-8deg) scale(1.06);
}

.tft-feature-title {
    font-size: var(--fs-h5);
    margin-bottom: 0.5rem;
}

.tft-feature-text {
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    margin: 0;
}

/* Deep-band variant */
.tft-band-ink .tft-feature,
.tft-band-ink-alt .tft-feature {
    background: rgba(250, 245, 238, 0.035);
    border-color: var(--c-rule-invert);
}

.tft-band-ink .tft-feature:hover,
.tft-band-ink-alt .tft-feature:hover {
    background: rgba(250, 245, 238, 0.06);
    border-color: rgba(227, 180, 99, 0.4);
}

.tft-band-ink .tft-feature-title,
.tft-band-ink-alt .tft-feature-title {
    color: var(--bone-100);
}

.tft-band-ink .tft-feature-text,
.tft-band-ink-alt .tft-feature-text {
    color: var(--c-text-invert-soft);
}

.tft-band-ink .tft-feature-icon,
.tft-band-ink-alt .tft-feature-icon {
    background: rgba(227, 180, 99, 0.14);
    color: var(--gold-400);
}

.tft-band-ink .tft-feature:hover .tft-feature-icon,
.tft-band-ink-alt .tft-feature:hover .tft-feature-icon {
    background: var(--gold-400);
    color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   8. TESTIMONIAL
   -------------------------------------------------------------------------- */
.tft-quote {
    position: relative;
    padding: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
    background: var(--bone-050);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.tft-quote::before {
    content: '\201C';
    position: absolute;
    top: 0.1em;
    right: 0.35em;
    font-family: var(--font-display);
    font-size: 7rem;
    line-height: 1;
    color: var(--rust-500);
    opacity: 0.12;
    pointer-events: none;
}

.tft-quote-text {
    position: relative;
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--c-text);
    margin: 0;
}

.tft-quote-foot {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-top: auto;
}

.tft-quote-avatar {
    width: 2.85rem;
    height: 2.85rem;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bone-300);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--rust-600);
}

.tft-quote-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tft-quote-name {
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 1.3;
}

.tft-quote-from {
    font-size: var(--fs-micro);
    color: var(--c-text-faint);
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
}

.tft-stars {
    display: flex;
    gap: 0.15rem;
    color: var(--gold-500);
}

.tft-stars svg {
    width: 0.85rem;
    height: 0.85rem;
}

/* --------------------------------------------------------------------------
   9. TEAM CARD
   -------------------------------------------------------------------------- */
.tft-person {
    text-align: center;
}

.tft-person-media {
    position: relative;
    aspect-ratio: 4 / 5;
    margin-bottom: var(--sp-lg);
    overflow: hidden;
    border-radius: var(--r-organic);
    background: linear-gradient(160deg, var(--bone-300), var(--clay-400));
    transition: border-radius var(--t-slow) var(--ease-out);
}

.tft-person:hover .tft-person-media {
    border-radius: 52% 48% 45% 55% / 48% 52% 48% 52%;
}

.tft-person-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The team portraits are cut-outs on transparency, not framed photographs.
   Contain them so nobody loses a head to the 4:5 crop, and stand them on
   the bottom edge so the gradient reads as ground rather than a gap. */
.tft-person-media.has-portrait img {
    object-fit: contain;
    object-position: center bottom;
}

/* Monogram stands in until a real portrait is uploaded. */
.tft-person-monogram {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: rgba(163, 65, 29, 0.5);
    font-variation-settings: var(--wonk-on);
}

.tft-person-name {
    font-size: var(--fs-h5);
    margin-bottom: 0.15rem;
}

.tft-person-role {
    font-size: var(--fs-micro);
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: var(--sp-sm);
}

/* --------------------------------------------------------------------------
   10. TICKER — destination names scrolling on a rust band
   -------------------------------------------------------------------------- */
.tft-ticker {
    position: relative;
    overflow: hidden;
    padding-block: clamp(0.85rem, 0.6rem + 0.8vw, 1.3rem);
    background: var(--rust-600);
    color: var(--bone-100);
    border-top: 1px solid rgba(250, 245, 238, 0.14);
    border-bottom: 1px solid rgba(250, 245, 238, 0.14);
}

.tft-ticker-track {
    display: flex;
    width: max-content;
    animation: tft-marquee 42s linear infinite;
}

.tft-ticker:hover .tft-ticker-track {
    animation-play-state: paused;
}

.tft-ticker-group {
    display: flex;
    align-items: center;
    flex: none;
}

.tft-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    padding-inline: 1.4rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    white-space: nowrap;
    font-variation-settings: var(--wonk-on);
}

.tft-ticker-item::after {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--gold-400);
    transform: rotate(45deg);
    flex: none;
}

@keyframes tft-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        /* Two identical groups; shifting by one is seamless. */
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tft-ticker-track {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   11. FORMS
   -------------------------------------------------------------------------- */
.tft-form {
    display: grid;
    gap: var(--sp-lg);
}

.tft-field {
    display: grid;
    gap: 0.45rem;
}

.tft-field label {
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-soft);
}

.tft-field .tft-req {
    color: var(--c-accent);
}

.tft-input,
.tft-textarea,
.tft-select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: var(--fs-body);
    color: var(--c-text);
    background: var(--bone-050);
    border: 1px solid var(--c-rule-strong);
    border-radius: var(--r-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    appearance: none;
}

.tft-textarea {
    min-height: 8.5rem;
    resize: vertical;
    line-height: 1.6;
}

/* iOS Safari zooms the whole page when a focused control sits under 16px. */
@media (max-width: 640px) {

    .tft-input,
    .tft-textarea,
    .tft-select {
        font-size: 1rem;
    }
}

.tft-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2355606d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.tft-input::placeholder,
.tft-textarea::placeholder {
    color: var(--c-text-faint);
}

.tft-input:focus,
.tft-textarea:focus,
.tft-select:focus {
    outline: none;
    border-color: var(--rust-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196, 84, 42, 0.14);
}

/* Deep-band form */
.tft-band-ink .tft-input,
.tft-band-ink .tft-textarea,
.tft-band-ink .tft-select,
.tft-band-ink-alt .tft-input,
.tft-band-ink-alt .tft-textarea,
.tft-band-ink-alt .tft-select {
    background: rgba(250, 245, 238, 0.045);
    border-color: var(--c-rule-invert-strong);
    color: var(--bone-100);
}

.tft-band-ink .tft-field label,
.tft-band-ink-alt .tft-field label {
    color: var(--c-text-invert-faint);
}

.tft-band-ink .tft-input:focus,
.tft-band-ink .tft-textarea:focus,
.tft-band-ink-alt .tft-input:focus,
.tft-band-ink-alt .tft-textarea:focus {
    background: rgba(250, 245, 238, 0.09);
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(227, 180, 99, 0.16);
}

.tft-field-row {
    display: grid;
    gap: var(--sp-lg);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 620px) {
    .tft-field-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Notices */
.tft-notice {
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    border-left: 3px solid;
}

.tft-notice--ok {
    background: rgba(74, 107, 84, 0.12);
    border-color: var(--acacia-500);
    color: var(--acacia-700);
}

.tft-notice--err {
    background: rgba(196, 84, 42, 0.1);
    border-color: var(--rust-500);
    color: var(--rust-700);
}

.tft-band-ink .tft-notice--ok,
.tft-band-ink-alt .tft-notice--ok {
    color: #a9d3b6;
}

.tft-band-ink .tft-notice--err,
.tft-band-ink-alt .tft-notice--err {
    color: var(--rust-300);
}

/* Honeypot — must be unreachable for humans but not display:none,
   which some bots detect. */
.tft-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   12. ACCORDION (FAQ)
   -------------------------------------------------------------------------- */
.tft-acc {
    border-top: 1px solid var(--c-rule);
}

.tft-acc-item {
    border-bottom: 1px solid var(--c-rule);
}

.tft-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    width: 100%;
    padding: clamp(1rem, 0.8rem + 0.7vw, 1.5rem) 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    color: var(--c-text);
    transition: color var(--t-fast);
    font-variation-settings: var(--wonk-on);
}

.tft-acc-trigger:hover {
    color: var(--c-accent);
}

.tft-acc-icon {
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--c-rule-strong);
    transition: background var(--t-mid), border-color var(--t-mid), transform var(--t-mid) var(--ease-spring);
}

.tft-acc-icon::before,
.tft-acc-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast);
}

.tft-acc-icon::before {
    width: 9px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.tft-acc-icon::after {
    width: 1.5px;
    height: 9px;
    transform: translate(-50%, -50%);
}

.tft-acc-item.is-open .tft-acc-icon {
    background: var(--rust-500);
    border-color: var(--rust-500);
    color: var(--bone-100);
    transform: rotate(180deg);
}

.tft-acc-item.is-open .tft-acc-icon::after {
    opacity: 0;
}

.tft-acc-panel {
    overflow: hidden;
    height: 0;
    transition: height var(--t-mid) var(--ease-out);
}

.tft-acc-panel-inner {
    padding-bottom: var(--sp-lg);
    max-width: 62ch;
    color: var(--c-text-soft);
    font-size: var(--fs-sm);
}

.tft-band-ink .tft-acc,
.tft-band-ink .tft-acc-item {
    border-color: var(--c-rule-invert);
}

.tft-band-ink .tft-acc-trigger {
    color: var(--bone-100);
}

.tft-band-ink .tft-acc-trigger:hover {
    color: var(--gold-400);
}

.tft-band-ink .tft-acc-icon {
    border-color: var(--c-rule-invert-strong);
}

.tft-band-ink .tft-acc-panel-inner {
    color: var(--c-text-invert-soft);
}

/* --------------------------------------------------------------------------
   13. GALLERY
   -------------------------------------------------------------------------- */
.tft-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--sp-md);
}

.tft-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    aspect-ratio: 4 / 3;
    background: var(--ink-700);
    cursor: zoom-in;
}

.tft-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}

.tft-gallery-item:hover img {
    transform: scale(1.06);
}

/*
 * A contact sheet: even squares, every frame the same size.
 *
 * This was an irregular mosaic — some tiles spanning two columns, some two
 * rows. Two things went wrong with it. Auto-placement could not always fill
 * around the large tiles, so the sheet was full of holes; and the odd cell
 * shapes it produced (one column wide by two rows tall, or the reverse) crop
 * savagely, because the photographs behind them are ordinary 3:4 phone shots
 * and 4:3 landscapes. A square is the shape that treats both of those
 * roughly alike, and it tiles without gaps.
 */
.tft-gallery--mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /*
     * Dense packing backfills the cell a double-width tile leaves behind when
     * it cannot fit at the end of a row. Squares outnumber panoramas heavily,
     * so in practice there is always one waiting to fill the hole.
     */
    grid-auto-flow: dense;
}

.tft-gallery--mosaic .tft-gallery-item {
    aspect-ratio: 1;
}

/*
 * Panoramas — anything 1.6:1 or wider — take two columns. A 16:9 frame loses
 * about a tenth of its width here, against nearly half in a square.
 */
.tft-gallery--mosaic .tft-gallery-item.is-wide {
    grid-column: span 2;
    aspect-ratio: 2;
}

/*
 * Four columns, then two — never three.
 *
 * A panorama spans two columns, so an odd column count cannot tile evenly:
 * at three columns a run of panoramas leaves a one-cell hole on every row,
 * and dense packing can only fill those if squares remain further down the
 * section. In this gallery the wide frames are the bundled artwork, which
 * sorts last, so there is nothing left to backfill with. Even counts remove
 * the problem rather than relying on the running order to rescue it.
 */
@media (max-width: 900px) {
    .tft-gallery--mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Two columns: a wide tile is the whole row, so it can afford to be taller. */
    .tft-gallery--mosaic .tft-gallery-item.is-wide {
        aspect-ratio: 16 / 9;
    }
}

/* Lightbox */
.tft-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-curtain);
    display: grid;
    place-items: center;
    padding: var(--gutter);
    background: rgba(10, 13, 17, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-mid), visibility var(--t-mid);
}

.tft-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.tft-lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 86vh;
    width: auto;
    object-fit: contain;
    border-radius: var(--r-sm);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform var(--t-mid) var(--ease-out);
}

.tft-lightbox.is-open img {
    transform: scale(1);
}

.tft-lightbox-close,
.tft-lightbox-nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--c-rule-invert-strong);
    color: var(--bone-100);
    background: rgba(10, 13, 17, 0.5);
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.tft-lightbox-close:hover,
.tft-lightbox-nav:hover {
    background: var(--rust-500);
    border-color: var(--rust-500);
    transform: scale(1.06);
}

.tft-lightbox-close {
    top: var(--gutter);
    right: var(--gutter);
    font-size: 1.4rem;
    line-height: 1;
}

.tft-lightbox-nav svg {
    width: 1.1rem;
    height: 1.1rem;
}

.tft-lightbox-nav--prev {
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
}

.tft-lightbox-nav--next {
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
}

.tft-lightbox-nav--prev:hover {
    transform: translateY(-50%) scale(1.06);
}

.tft-lightbox-nav--next:hover {
    transform: translateY(-50%) scale(1.06);
}

.tft-lightbox-count {
    position: absolute;
    bottom: var(--gutter);
    left: 50%;
    transform: translateX(-50%);
    color: var(--c-text-invert-faint);
    font-size: var(--fs-micro);
    letter-spacing: var(--tr-label);
}

/* --------------------------------------------------------------------------
   14. INTERIOR PAGE HERO
   -------------------------------------------------------------------------- */
.tft-page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(20rem, 38vh + 6rem, 30rem);
    padding-top: 8rem;
    padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
    overflow: hidden;
    background: var(--ink-900);
    color: var(--bone-100);
}

.tft-page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tft-page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transform: scale(1.06);
}

.tft-page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 13, 17, 0.72) 0%, rgba(10, 13, 17, 0.42) 45%, rgba(10, 13, 17, 0.9) 100%);
}

.tft-page-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.tft-page-hero h1 {
    color: var(--bone-100);
    max-width: 22ch;
}

.tft-page-hero .tft-lead {
    color: var(--c-text-invert-soft);
    max-width: 52ch;
    margin-top: var(--sp-lg);
}

/* Breadcrumb */
.tft-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    margin-bottom: var(--sp-lg);
    font-size: var(--fs-micro);
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-invert-faint);
}

.tft-crumbs a:hover {
    color: var(--gold-400);
}

.tft-crumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5em;
    opacity: 0.5;
}

.tft-crumbs li {
    display: inline-flex;
    align-items: center;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.tft-footer {
    position: relative;
    background: var(--bone-200);
    color: var(--c-text-soft);
    border-top: 1px solid var(--c-rule);
    overflow: hidden;
}

.tft-footer::before {
    content: '';
    position: absolute;
    inset: auto 0 -30% 0;
    height: 70%;
    background: radial-gradient(80% 100% at 50% 100%, rgba(196, 84, 42, 0.12), transparent 70%);
    pointer-events: none;
}

.tft-footer-main {
    position: relative;
    z-index: 1;
    padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.tft-footer-grid {
    display: grid;
    gap: clamp(2rem, 1.2rem + 3vw, 4rem);
    /* TOURS DISABLED — three columns while the Journeys column is commented out
       of footer.php. Restore `repeat(3, ...)` when it comes back. */
    /* grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); */
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .tft-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .tft-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tft-footer-brand .tft-logo {
    margin-bottom: var(--sp-lg);
}

.tft-footer-brand .tft-logo img {
    height: clamp(46px, 5vw, 62px);
}

.tft-footer-tagline {
    font-family: var(--font-display);
    font-size: var(--fs-h5);
    font-style: italic;
    font-weight: 300;
    color: var(--c-text);
    max-width: 26ch;
    margin-bottom: var(--sp-lg);
    font-variation-settings: var(--wonk-on);
}

.tft-footer-title {
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--rust-600);
    margin-bottom: var(--sp-lg);
}

.tft-footer-links {
    display: grid;
    gap: 0.6rem;
}

.tft-footer-links a {
    display: inline-block;
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    transition: color var(--t-fast), transform var(--t-fast) var(--ease-out);
}

.tft-footer-links a:hover {
    color: var(--rust-600);
    transform: translateX(4px);
}

.tft-footer-contact {
    display: grid;
    gap: var(--sp-md);
}

.tft-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: var(--fs-sm);
}

.tft-footer-contact-item svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    margin-top: 0.32em;
    color: var(--rust-500);
}

.tft-footer-contact-item a:hover {
    color: var(--rust-600);
}

.tft-footer-contact-item small {
    color: var(--c-text-soft);
}

/* Socials */
.tft-socials {
    display: flex;
    gap: var(--sp-sm);
    margin-top: var(--sp-lg);
}

.tft-social {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid var(--c-rule-invert-strong);
    color: var(--c-text-invert-soft);
    transition: background var(--t-mid) var(--ease-out), border-color var(--t-mid), color var(--t-mid), transform var(--t-mid) var(--ease-spring);
}

.tft-social svg {
    width: 1rem;
    height: 1rem;
}

.tft-social:hover {
    background: var(--rust-500);
    border-color: var(--rust-500);
    color: var(--bone-100);
    transform: translateY(-3px);
}

/* The drawer keeps the inverted treatment; the footer is on light. */
.tft-footer .tft-social {
    border-color: var(--c-rule-strong);
    color: var(--c-text-soft);
}

.tft-footer .tft-social:hover {
    border-color: var(--rust-500);
    color: var(--bone-100);
}

/* Bottom bar */
.tft-footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--c-rule);
    padding-block: var(--sp-lg);
}

.tft-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    font-size: var(--fs-micro);
    color: var(--c-text-soft);
}

.tft-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.tft-footer-legal a:hover {
    color: var(--rust-600);
}

/* --------------------------------------------------------------------------
   16. FLOATING WHATSAPP + BACK TO TOP
   -------------------------------------------------------------------------- */
.tft-float {
    position: fixed;
    right: clamp(0.9rem, 2vw, 1.75rem);
    bottom: clamp(0.9rem, 2vw, 1.75rem);
    z-index: calc(var(--z-nav) - 5);
    display: grid;
    gap: 0.6rem;
    justify-items: center;
}

.tft-float-btn {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    color: var(--bone-100);
    box-shadow: var(--sh-md);
    transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid), opacity var(--t-mid), visibility var(--t-mid);
}

.tft-float-btn svg {
    width: 1.4rem;
    height: 1.4rem;
}

.tft-float-btn:hover {
    transform: scale(1.08) translateY(-2px);
}

.tft-float-wa {
    background: #1faa53;
}

.tft-float-top {
    background: var(--ink-800);
    border: 1px solid var(--c-rule-invert-strong);
    opacity: 0;
    visibility: hidden;
}

.tft-float-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.tft-float-top svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* --------------------------------------------------------------------------
   17. PAGE CURTAIN — sunrise wipe on first load
   -------------------------------------------------------------------------- */
.tft-curtain {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--ink-900);
    transition: transform 900ms var(--ease-in-out), opacity 500ms 400ms;
    pointer-events: none;
}

.tft-curtain.is-done {
    transform: translateY(-100%);
    opacity: 0;
}

.tft-curtain-sun {
    width: clamp(4rem, 14vw, 8rem);
    height: clamp(4rem, 14vw, 8rem);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--gold-300), var(--rust-500) 62%, transparent 72%);
    animation: tft-sun-rise 1.4s var(--ease-out) forwards;
}

@keyframes tft-sun-rise {
    0% {
        transform: translateY(40%) scale(0.7);
        opacity: 0;
    }

    45% {
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tft-curtain {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   STORY MEDIA — shared by the home and About templates
   -------------------------------------------------------------------------- */
.tft-story {
    position: relative;
}

.tft-story-media {
    position: relative;
}

.tft-story-media-main {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-organic);
    background: var(--ink-700);
    box-shadow: var(--sh-lg);
}

.tft-story-media-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Small overlapping inset photo, tucked off the corner. */
.tft-story-media-inset {
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 42%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 6px solid var(--c-bg);
    background: var(--ink-700);
    box-shadow: var(--sh-md);
}

.tft-story-media-inset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Coordinate stamp rotated up the left edge of the image. */
.tft-story-stamp {
    position: absolute;
    left: -3.5rem;
    top: 12%;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .tft-story-stamp {
        display: none;
    }
}
