/* ==========================================================================
   TWO FARM TOURS — "NAMIB STRATA" DESIGN SYSTEM
   --------------------------------------------------------------------------
   The palette is pulled straight off the land: the near-black of a Namibian
   night sky (some of the darkest on earth), the burnt rust of the Sossusvlei
   dunes, dry-grass gold, and the bleached bone-white of a clay pan.
   Layout follows "strata" — horizontal bands, like canyon rock or a dune
   ridgeline stacked against the horizon.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* --- Raw palette ------------------------------------------------------ */
    --ink-900: #0a0d11;   /* deepest night sky */
    --ink-850: #0e1217;
    --ink-800: #12171e;
    --ink-750: #171d25;
    --ink-700: #1c232c;
    --ink-600: #2a333f;
    --ink-500: #3d4854;

    --bone-050: #fdfaf6;  /* sun-bleached paper */
    --bone-100: #faf5ee;
    --bone-200: #f2eae0;
    --bone-300: #e6d9c9;
    --bone-400: #d3c1ab;

    --clay-400: #c2a68a;
    --clay-500: #a68a6d;  /* dry riverbed */

    --rust-300: #ec9a6a;
    --rust-400: #de7440;  /* dune, lit face */
    --rust-500: #c4542a;  /* dune, primary */
    --rust-600: #a3411d;  /* dune, shadow */
    --rust-700: #7d3117;

    --gold-300: #f2d194;
    --gold-400: #e3b463;  /* dry grass */
    --gold-500: #d09a3c;  /* flag sun */

    --acacia-500: #4a6b54;
    --acacia-600: #35513f;
    --acacia-700: #263a2e;  /* thornbush shadow */

    /* --- Semantic --------------------------------------------------------- */
    --c-bg: var(--bone-100);
    --c-bg-alt: var(--bone-200);
    --c-bg-deep: var(--ink-900);
    --c-bg-deep-alt: var(--ink-800);

    --c-text: var(--ink-800);
    --c-text-soft: #55606d;
    --c-text-faint: #7b8695;
    --c-text-invert: var(--bone-100);
    --c-text-invert-soft: rgba(250, 245, 238, 0.68);
    --c-text-invert-faint: rgba(250, 245, 238, 0.42);

    --c-accent: var(--rust-500);
    --c-accent-hot: var(--rust-400);
    --c-accent-deep: var(--rust-600);
    --c-gold: var(--gold-400);

    --c-rule: rgba(28, 35, 44, 0.14);
    --c-rule-strong: rgba(28, 35, 44, 0.28);
    --c-rule-invert: rgba(250, 245, 238, 0.16);
    --c-rule-invert-strong: rgba(250, 245, 238, 0.32);

    /* --- Type ------------------------------------------------------------- */
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

    /* Fluid scale — 360px floor, 1440px ceiling */
    --fs-eyebrow: clamp(0.62rem, 0.55rem + 0.22vw, 0.75rem);
    --fs-micro: clamp(0.68rem, 0.63rem + 0.18vw, 0.78rem);
    --fs-sm: clamp(0.84rem, 0.8rem + 0.2vw, 0.94rem);
    --fs-body: clamp(0.97rem, 0.92rem + 0.28vw, 1.09rem);
    --fs-lead: clamp(1.08rem, 0.98rem + 0.55vw, 1.42rem);
    --fs-h5: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
    --fs-h4: clamp(1.22rem, 1.08rem + 0.7vw, 1.65rem);
    --fs-h3: clamp(1.5rem, 1.24rem + 1.3vw, 2.4rem);
    --fs-h2: clamp(2rem, 1.5rem + 2.6vw, 3.9rem);
    --fs-h1: clamp(2.6rem, 1.7rem + 4.6vw, 6.1rem);
    --fs-mega: clamp(3.4rem, 1.6rem + 8.6vw, 10rem);

    --lh-tight: 0.96;
    --lh-snug: 1.1;
    --lh-head: 1.16;
    --lh-body: 1.68;
    --lh-loose: 1.8;

    --tr-eyebrow: 0.24em;
    --tr-label: 0.13em;

    /* Fraunces variable axes — a touch of "wonk" keeps headings
       hand-cut rather than corporate. */
    --wonk-on: 'SOFT' 40, 'WONK' 1;
    --wonk-off: 'SOFT' 0, 'WONK' 0;

    /* --- Space ------------------------------------------------------------ */
    --sp-2xs: 0.25rem;
    --sp-xs: 0.5rem;
    --sp-sm: 0.75rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;
    --sp-4xl: 6rem;
    --section-y: clamp(4rem, 2.2rem + 8vw, 9.5rem);
    --section-y-tight: clamp(2.75rem, 1.8rem + 4.5vw, 6rem);

    /* --- Measure ---------------------------------------------------------- */
    --w-narrow: 44rem;
    --w-text: 58rem;
    --w-page: 78rem;
    --w-wide: 92rem;
    --gutter: clamp(1.15rem, 0.6rem + 2.6vw, 3.5rem);

    /* --- Form ------------------------------------------------------------- */
    --r-xs: 2px;
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-pill: 999px;
    /* A soft organic blob, used on portraits and pull-images so nothing
       on the site is a plain rectangle. */
    --r-organic: 46% 54% 52% 48% / 54% 46% 54% 46%;

    /* --- Elevation — warm-tinted, never neutral grey ----------------------- */
    --sh-sm: 0 1px 2px rgba(45, 26, 14, 0.06), 0 2px 6px rgba(45, 26, 14, 0.05);
    --sh-md: 0 4px 12px rgba(45, 26, 14, 0.09), 0 12px 28px rgba(45, 26, 14, 0.07);
    --sh-lg: 0 10px 30px rgba(45, 26, 14, 0.12), 0 28px 64px rgba(45, 26, 14, 0.1);
    --sh-glow: 0 12px 40px rgba(196, 84, 42, 0.28);

    /* --- Motion ----------------------------------------------------------- */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.46, 0.64, 1);
    --t-fast: 180ms;
    --t-mid: 340ms;
    --t-slow: 620ms;
    --t-reveal: 900ms;

    --z-base: 1;
    --z-raised: 10;
    --z-nav: 100;
    --z-drawer: 200;
    --z-curtain: 900;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Nav clears anchored headings */
    scroll-padding-top: 6rem;
}

body.tft {
    margin: 0;
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-variant-numeric: tabular-nums;
}

body.tft.is-locked {
    overflow: hidden;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

figure,
blockquote {
    margin: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--c-rule);
    margin: var(--sp-xl) 0;
}

::selection {
    background: var(--rust-500);
    color: var(--bone-100);
}

:focus-visible {
    outline: 2px solid var(--rust-500);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

/* Divi ships a lot of chrome we do not want in a bespoke child theme. */
#page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#main-content {
    background: transparent;
}

.tft-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: var(--z-curtain);
    padding: var(--sp-sm) var(--sp-lg);
    background: var(--ink-900);
    color: var(--bone-100);
    font-size: var(--fs-sm);
}

.tft-skip:focus {
    left: var(--sp-md);
    top: var(--sp-md);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: var(--lh-head);
    letter-spacing: -0.015em;
    font-variation-settings: var(--wonk-on);
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-snug);
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

h5 {
    font-size: var(--fs-h5);
}

p {
    margin: 0 0 1.15em;
    text-wrap: pretty;
}

p:last-child {
    margin-bottom: 0;
}

strong,
b {
    font-weight: 600;
}

em {
    font-style: italic;
}

small {
    font-size: var(--fs-sm);
}

/* --- Display utilities --------------------------------------------------- */
.tft-display {
    font-family: var(--font-display);
    font-weight: 400;
    font-variation-settings: var(--wonk-on);
}

/* Oversized numerals — itinerary days, stats. */
.tft-numeral {
    font-family: var(--font-display);
    font-size: var(--fs-mega);
    font-weight: 300;
    line-height: 0.82;
    letter-spacing: -0.05em;
    font-variation-settings: 'SOFT' 60, 'WONK' 1;
}

/* The eyebrow: wide-tracked uppercase, always preceded by a short rule.
   Used to label every section. */
.tft-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-family: var(--font-body);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--c-accent);
    margin: 0 0 var(--sp-lg);
}

.tft-eyebrow::before {
    content: '';
    width: clamp(1.5rem, 3vw, 2.75rem);
    height: 1px;
    background: currentColor;
    flex: none;
}

.tft-eyebrow--gold {
    color: var(--c-gold);
}

.tft-eyebrow--center {
    justify-content: center;
}

.tft-eyebrow--center::after {
    content: '';
    width: clamp(1.5rem, 3vw, 2.75rem);
    height: 1px;
    background: currentColor;
    flex: none;
}

/* Coordinate micro-type. Every place on this site is a real place with a
   real position — printing it says "expedition", not "brochure". */
.tft-coord {
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-faint);
    font-variant-numeric: tabular-nums;
}

.tft-coord--invert {
    color: var(--c-text-invert-faint);
}

.tft-label {
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-soft);
}

.tft-lead {
    font-size: var(--fs-lead);
    line-height: 1.5;
    color: var(--c-text-soft);
    font-weight: 300;
}

/* Drop-cap for story openings. */
.tft-dropcap::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 3.9em;
    line-height: 0.78;
    font-weight: 400;
    margin: 0.06em 0.09em 0 0;
    color: var(--c-accent);
    font-variation-settings: 'SOFT' 60, 'WONK' 1;
}

/* Hand-drawn underline beneath a highlighted word. */
.tft-mark {
    position: relative;
    display: inline-block;
    color: var(--c-accent);
    font-style: italic;
}

.tft-mark::after {
    content: '';
    position: absolute;
    left: -0.04em;
    right: -0.04em;
    bottom: -0.06em;
    height: 0.38em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M1 9.6c34-4.2 68-6.4 100-6.4s66 2.3 98 6.9' fill='none' stroke='%23d09a3c' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    opacity: 0.85;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.tft-shell {
    width: 100%;
    max-width: var(--w-page);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.tft-shell--wide {
    max-width: var(--w-wide);
}

.tft-shell--text {
    max-width: var(--w-text);
}

.tft-shell--narrow {
    max-width: var(--w-narrow);
}

.tft-section {
    position: relative;
    padding-block: var(--section-y);
}

.tft-section--tight {
    padding-block: var(--section-y-tight);
}

.tft-section--flush-top {
    padding-top: 0;
}

.tft-section--flush-bottom {
    padding-bottom: 0;
}

/* Strata bands — the alternating light/deep rhythm of the page. */
.tft-band-bone {
    background: var(--c-bg);
    color: var(--c-text);
}

.tft-band-bone-alt {
    background: var(--c-bg-alt);
    color: var(--c-text);
}

.tft-band-ink {
    background: var(--c-bg-deep);
    color: var(--c-text-invert);
}

.tft-band-ink-alt {
    background: var(--c-bg-deep-alt);
    color: var(--c-text-invert);
}

.tft-band-rust {
    background: var(--rust-600);
    color: var(--bone-100);
}

/* Deep bands get a warm dune-glow bleeding up from the base, as if the sun
   just went down behind the section. */
.tft-band-ink::before,
.tft-band-ink-alt::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 60%;
    background: radial-gradient(120% 100% at 50% 100%, rgba(196, 84, 42, 0.17) 0%, rgba(196, 84, 42, 0.05) 42%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.tft-band-ink > *,
.tft-band-ink-alt > * {
    position: relative;
    z-index: 1;
}

.tft-band-ink h1,
.tft-band-ink h2,
.tft-band-ink h3,
.tft-band-ink-alt h1,
.tft-band-ink-alt h2,
.tft-band-ink-alt h3,
.tft-band-rust h2 {
    color: var(--c-text-invert);
}

.tft-band-ink .tft-lead,
.tft-band-ink-alt .tft-lead {
    color: var(--c-text-invert-soft);
}

.tft-band-ink .tft-label,
.tft-band-ink-alt .tft-label {
    color: var(--c-text-invert-faint);
}

/* --- Grids -------------------------------------------------------------- */
.tft-grid {
    display: grid;
    gap: var(--sp-xl);
}

.tft-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tft-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tft-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Asymmetric editorial splits — never a plain 50/50. */
.tft-split {
    display: grid;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
}

.tft-split--reverse {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.tft-split--top {
    align-items: start;
}

@media (max-width: 860px) {
    .tft-grid--3,
    .tft-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tft-split,
    .tft-split--reverse {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Keep the image above the copy when a split collapses. */
    .tft-split--reverse > .tft-split-media {
        order: -1;
    }
}

@media (max-width: 560px) {
    .tft-grid--2,
    .tft-grid--3,
    .tft-grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tft-stack > * + * {
    margin-top: var(--sp-md);
}

.tft-stack-lg > * + * {
    margin-top: var(--sp-xl);
}

.tft-center {
    text-align: center;
}

.tft-measure {
    max-width: 46ch;
}

.tft-measure-wide {
    max-width: 62ch;
}

/* --------------------------------------------------------------------------
   5. MOTIFS — grain, contours, ridgelines, sun
   -------------------------------------------------------------------------- */

/* Film grain over the whole document. Sun-bleached, analogue; keeps large
   flat colour fields from looking digital. */
.tft-grain::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
    opacity: 0.038;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Topographic contour texture — survey-map underlay for deep sections. */
.tft-contours {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.5;
    z-index: 0;
}

.tft-contours svg {
    position: absolute;
    width: 140%;
    height: auto;
    min-height: 100%;
    left: -20%;
    top: 50%;
    transform: translateY(-50%);
}

.tft-contours path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    opacity: 0.13;
}

/* <picture> must not generate a box of its own. Image rules throughout the
   theme size against the real container (aspect-ratio wrappers, absolute
   inset), and an inline <picture> in between collapses `height: 100%` to
   zero. `display: contents` makes the wrapper disappear from layout. */
picture {
    display: contents;
}

/* Dune ridgeline divider. Sits between bands so sections meet on a
   horizon line rather than a hard edge. */
.tft-ridge {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(48px, 7vw, 110px);
    line-height: 0;
    pointer-events: none;
}

.tft-ridge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tft-ridge--flip svg {
    transform: scaleY(-1);
}

/* The rising sun — a soft disc that sits behind headings and hero art.
   Lifted from the sun on the Namibian flag, softened to a glow. */
.tft-sun {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%,
            rgba(224, 118, 60, 0.5) 0%,
            rgba(208, 154, 60, 0.26) 38%,
            rgba(208, 154, 60, 0.08) 62%,
            transparent 74%);
    filter: blur(6px);
}

/* Thin gold rule with a diamond at its centre — section punctuation. */
.tft-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    color: var(--c-gold);
}

.tft-ornament::before,
.tft-ornament::after {
    content: '';
    height: 1px;
    width: clamp(2rem, 8vw, 5rem);
    background: linear-gradient(90deg, transparent, currentColor);
}

.tft-ornament::after {
    background: linear-gradient(90deg, currentColor, transparent);
}

.tft-ornament-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    transform: rotate(45deg);
    flex: none;
}

/* --------------------------------------------------------------------------
   6. MEDIA TREATMENTS
   -------------------------------------------------------------------------- */
.tft-media {
    position: relative;
    overflow: hidden;
    background: var(--ink-700);
}

.tft-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tft-media--tall {
    aspect-ratio: 3 / 4;
}

.tft-media--portrait {
    aspect-ratio: 4 / 5;
}

.tft-media--square {
    aspect-ratio: 1;
}

.tft-media--wide {
    aspect-ratio: 16 / 10;
}

.tft-media--pano {
    aspect-ratio: 21 / 9;
}

.tft-media--organic {
    border-radius: var(--r-organic);
}

.tft-media--arch {
    /* A window cut like a lodge doorway. */
    border-radius: 50% 50% 8px 8px / 28% 28% 3% 3%;
}

/* Warm treatment — unifies photography shot on a dozen different
   cameras into one house look. */
.tft-media--warm img {
    filter: saturate(1.06) contrast(1.04);
}

.tft-media--duo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 17, 0.06) 0%, rgba(163, 65, 29, 0.2) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Legibility scrim for text laid over imagery. */
.tft-scrim::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 13, 17, 0.16) 0%,
            rgba(10, 13, 17, 0.04) 35%,
            rgba(10, 13, 17, 0.62) 78%,
            rgba(10, 13, 17, 0.86) 100%);
    pointer-events: none;
}

.tft-media--zoom img {
    transition: transform var(--t-slow) var(--ease-out);
}

.tft-media--zoom:hover img {
    transform: scale(1.055);
}

/* --------------------------------------------------------------------------
   7. SCROLL REVEALS
   --------------------------------------------------------------------------
   theme.js adds .is-in when an element enters the viewport. Everything
   degrades to visible if JS never runs (see .no-js escape below).
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transition:
        opacity var(--t-reveal) var(--ease-out),
        transform var(--t-reveal) var(--ease-out),
        clip-path var(--t-reveal) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal='up'] {
    transform: translate3d(0, 2.5rem, 0);
}

[data-reveal='down'] {
    transform: translate3d(0, -1.75rem, 0);
}

[data-reveal='left'] {
    transform: translate3d(2.5rem, 0, 0);
}

[data-reveal='right'] {
    transform: translate3d(-2.5rem, 0, 0);
}

[data-reveal='scale'] {
    transform: scale(0.94);
}

/* Image curtain — the photo is uncovered from the bottom up. */
[data-reveal='curtain'] {
    clip-path: inset(0 0 100% 0);
    opacity: 1;
}

[data-reveal='fade'] {
    transform: none;
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
}

/* Masked line-by-line heading reveal. theme.js wraps each line in
   .tft-line > .tft-line-i, then the inner span rises into view. */
.tft-lines .tft-line {
    display: block;
    overflow: hidden;
    /* Descenders would otherwise be clipped by the mask. */
    padding-bottom: 0.09em;
    margin-bottom: -0.09em;
}

.tft-lines .tft-line-i {
    display: block;
    transform: translate3d(0, 108%, 0);
    transition: transform 1s var(--ease-out);
    transition-delay: var(--line-delay, 0ms);
}

.tft-lines.is-in .tft-line-i {
    transform: translate3d(0, 0, 0);
}

/* Staggered children. */
[data-stagger] > * {
    opacity: 0;
    transform: translate3d(0, 1.75rem, 0);
    transition:
        opacity var(--t-slow) var(--ease-out),
        transform var(--t-slow) var(--ease-out);
}

[data-stagger].is-in > * {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   8. PARALLAX
   -------------------------------------------------------------------------- */
[data-parallax] {
    will-change: transform;
}

.tft-parallax-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   9. UTILITIES
   -------------------------------------------------------------------------- */
.tft-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tft-relative {
    position: relative;
}

.tft-overflow-hidden {
    overflow: hidden;
}

.tft-no-margin {
    margin: 0 !important;
}

.tft-accent {
    color: var(--c-accent);
}

.tft-gold {
    color: var(--c-gold);
}

.tft-italic {
    font-style: italic;
}

@media (max-width: 860px) {
    .tft-hide-md {
        display: none !important;
    }
}

@media (min-width: 861px) {
    .tft-show-md {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   10. MOTION PREFERENCES
   --------------------------------------------------------------------------
   Everything above is decoration. If the visitor asked for less motion,
   show the finished state immediately — no exceptions.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal],
    [data-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    .tft-lines .tft-line-i {
        transform: none !important;
    }

    [data-parallax] {
        transform: none !important;
    }
}

/* No-JS fallback: reveals must never hide content permanently. */
.no-js [data-reveal],
.no-js [data-stagger] > * {
    opacity: 1;
    transform: none;
    clip-path: none;
}

.no-js .tft-lines .tft-line-i {
    transform: none;
}
