/*
===============================================================================
 FTF HARDCORE CUSTOM 1.0 — FOUNDATION
 Dark charcoal / crimson / gold, no sidebar, no Exo UI overrides.
===============================================================================
*/

:root {
  --ftf-bg: #09090a;
  --ftf-bg-soft: #0f0f11;
  --ftf-panel: #151517;
  --ftf-panel-2: #1b1b1e;
  --ftf-line: rgba(255, 255, 255, 0.095);
  --ftf-line-strong: rgba(198, 154, 74, 0.34);
  --ftf-red: #a92323;
  --ftf-red-bright: #d64632;
  --ftf-red-deep: #591414;
  --ftf-gold: #c69a4a;
  --ftf-gold-bright: #edc977;
  --ftf-gold-pale: #f4dda9;
  --ftf-text: #f5f2ec;
  --ftf-text-soft: #c1bdb6;
  --ftf-muted: #88858a;
  --ftf-success: #57c879;
  --ftf-warning: #dc9d52;
  --ftf-container: 1240px;
  --ftf-radius: 12px;
  --ftf-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);

  --tebex-legal-footer-background-color: #070708;
  --tebex-legal-footer-text-color: #9c9994;
  --tebex-legal-footer-border-color: rgba(255, 255, 255, 0.08);
  --tebex-legal-footer-max-width: 1240px;
  --tebex-legal-footer-logo-color: #c69a4a;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--ftf-bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ftf-text);
  background: var(--ftf-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.ftf-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.ftf-container { width: min(var(--ftf-container), calc(100% - 40px)); margin-inline: auto; }
.ftf-narrow-container { max-width: 760px; }
.ftf-site { min-height: 100vh; display: flex; flex-direction: column; }
.ftf-main { flex: 1; overflow: clip; }
.ftf-skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px;
  background: var(--ftf-gold); color: #111; border-radius: 6px; transform: translateY(-150%);
}
.ftf-skip-link:focus { transform: translateY(0); }

/* HEADER */
.ftf-header { position: relative; z-index: 100; border-bottom: 1px solid var(--ftf-line); }
.ftf-utility { min-height: 42px; background: #070708; border-bottom: 1px solid var(--ftf-line); }
.ftf-utility-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ftf-server-copy {
  display: inline-flex; align-items: center; gap: 9px; min-width: 0; padding: 0; border: 0; background: none;
  color: var(--ftf-text-soft); cursor: pointer; font-size: .78rem; letter-spacing: .025em;
}
.ftf-server-copy strong { color: var(--ftf-text); font-size: .8rem; }
.ftf-server-label { color: var(--ftf-muted); }
.ftf-copy-label { color: var(--ftf-gold-bright); text-transform: uppercase; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.ftf-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ftf-success); box-shadow: 0 0 14px rgba(87, 200, 121, .58); flex: 0 0 auto; }
.ftf-status-dot.is-offline { background: #8d8d91; box-shadow: none; }
.ftf-utility-actions { display: flex; align-items: center; gap: 14px; }
.ftf-player-name { color: var(--ftf-text-soft); font-size: .78rem; }
.ftf-utility-link { color: var(--ftf-text-soft); font-size: .76rem; text-decoration: none; }
.ftf-utility-link:hover { color: var(--ftf-gold-bright); }
.ftf-basket-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ftf-text); text-decoration: none;
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.ftf-basket-link svg { width: 18px; height: 18px; fill: var(--ftf-gold); }
.ftf-basket-count {
  min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px;
  border: 1px solid rgba(198, 154, 74, .5); border-radius: 999px; color: var(--ftf-gold-bright); font-size: .68rem;
}

.ftf-masthead {
  position: relative; min-height: 250px; display: grid; place-items: center; isolation: isolate;
  background-image: var(--ftf-obsidian-header); background-size: cover; background-position: center 48%;
}
.ftf-masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 4, 5, .36), rgba(6, 6, 7, .6) 64%, #0a0a0b 100%);
}
.ftf-masthead::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 42%, rgba(179, 37, 25, .16), transparent 42%);
}
.ftf-masthead-inner { min-height: 250px; display: grid; place-items: center; position: relative; }
.ftf-brand { display: block; width: min(820px, 80vw); text-decoration: none; transition: transform .2s ease; }
.ftf-brand:hover { transform: scale(1.025); }
.ftf-brand img { display: block; width: 100%; max-height: 205px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .62)); }
.ftf-brand-fallback { display: block; text-align: center; font-size: clamp(2rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; }
.ftf-brand-fallback strong { display: block; color: var(--ftf-red-bright); }
.ftf-menu-toggle { display: none; position: absolute; left: 0; top: 24px; width: 42px; height: 42px; border: 1px solid var(--ftf-line); background: rgba(10,10,11,.7); border-radius: 8px; }
.ftf-menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ftf-text); }

.ftf-nav-bar { position: sticky; top: 0; z-index: 90; background: rgba(10, 10, 11, .96); border-top: 1px solid var(--ftf-line); border-bottom: 1px solid var(--ftf-line); }
.ftf-navigation { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 34px; }
.ftf-nav-link { position: relative; color: #c9c6c0; text-decoration: none; text-transform: uppercase; font-size: .74rem; font-weight: 800; letter-spacing: .13em; }
.ftf-nav-link::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -19px; height: 2px; background: linear-gradient(90deg, var(--ftf-red-bright), var(--ftf-gold)); transition: left .18s ease, right .18s ease; }
.ftf-nav-link:hover { color: #fff; }
.ftf-nav-link:hover::after { left: 0; right: 0; }
.ftf-mobile-panel { position: fixed; inset: 0; z-index: 200; padding: 100px 30px 40px; background: rgba(7,7,8,.98); }
.ftf-mobile-panel .ftf-navigation { flex-direction: column; gap: 24px; }
.ftf-mobile-panel .ftf-nav-link { font-size: 1rem; }

/* SHARED TYPOGRAPHY / BUTTONS */
.ftf-eyebrow, .ftf-footer-kicker, .ftf-module-label {
  margin: 0 0 10px; color: var(--ftf-gold-bright); font-size: .7rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; color: var(--ftf-text); line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
p { color: var(--ftf-text-soft); }
.ftf-button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: 7px; text-decoration: none; text-transform: uppercase;
  font-size: .72rem; font-weight: 850; letter-spacing: .09em; cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.ftf-button:hover { transform: translateY(-2px); }
.ftf-button-large { min-height: 54px; padding-inline: 28px; }
.ftf-button-red { color: #fff; background: linear-gradient(180deg, #c83d2c, #8e1d1d); border-color: rgba(245, 109, 76, .65); box-shadow: 0 12px 26px rgba(101, 13, 13, .28); }
.ftf-button-red:hover { background: linear-gradient(180deg, #df4b35, #a52520); box-shadow: 0 16px 30px rgba(113, 15, 15, .36); }
.ftf-button-gold { color: #19130a; background: linear-gradient(180deg, #efd187, #b7802d); border-color: #f5d993; }
.ftf-button-ghost { color: var(--ftf-text); background: rgba(255,255,255,.025); border-color: var(--ftf-line); }
.ftf-button-ghost:hover { border-color: var(--ftf-line-strong); background: rgba(198,154,74,.07); }
.ftf-button-disabled { color: #706e71; background: #161618; border-color: var(--ftf-line); cursor: not-allowed; }
.ftf-button-disabled:hover { transform: none; }

/* HOMEPAGE */
.ftf-home-hero { position: relative; background: #0b0b0c; border-bottom: 1px solid var(--ftf-line); }
.ftf-home-hero-grid { min-height: 610px; padding-block: 84px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(50px, 7vw, 100px); }
.ftf-home-hero-copy h1 { max-width: 790px; margin-bottom: 24px; }
.ftf-home-hero-copy > p:not(.ftf-eyebrow) { max-width: 680px; font-size: 1.1rem; line-height: 1.85; }
.ftf-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 34px 0 30px; }
.ftf-hero-facts { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--ftf-muted); font-size: .73rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.ftf-hero-facts span::before { content: "✦"; margin-right: 8px; color: var(--ftf-gold); }
.ftf-hero-art { min-width: 0; }
.ftf-art-frame {
  min-height: 430px; display: grid; place-content: end start; padding: 34px; position: relative; overflow: hidden;
  border: 1px solid var(--ftf-line-strong); border-radius: var(--ftf-radius); box-shadow: var(--ftf-shadow);
  background:
    linear-gradient(180deg, transparent 28%, rgba(8,8,9,.9)),
    radial-gradient(circle at 50% 30%, rgba(181, 42, 29, .32), transparent 42%),
    linear-gradient(135deg, #242326, #0d0d0f);
}
.ftf-art-frame::before, .ftf-art-frame::after { content: ""; position: absolute; border: 1px solid rgba(198,154,74,.3); }
.ftf-art-frame::before { inset: 13px; border-radius: 8px; }
.ftf-art-frame::after { width: 240px; height: 240px; border-radius: 50%; top: 50px; left: 50%; transform: translateX(-50%); box-shadow: 0 0 80px rgba(175, 34, 24, .2); }
.ftf-art-frame span { position: relative; z-index: 1; font-size: 1.1rem; font-weight: 800; }
.ftf-art-frame small { position: relative; z-index: 1; display: block; margin-top: 6px; max-width: 300px; color: var(--ftf-muted); }

.ftf-section { padding-block: clamp(76px, 9vw, 124px); }
.ftf-section-dark { background: #0d0d0f; }
.ftf-section-heading { max-width: 760px; margin-bottom: 46px; }
.ftf-section-heading h2 { margin-bottom: 14px; }
.ftf-section-heading p:last-child { font-size: 1rem; line-height: 1.8; }
.ftf-section-heading-split { max-width: none; display: grid; grid-template-columns: 1fr minmax(320px, .7fr); gap: 70px; align-items: end; }
.ftf-section-heading-split > p { margin: 0; }
.ftf-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ftf-line); border-left: 1px solid var(--ftf-line); }
.ftf-feature-card { min-height: 300px; padding: 34px 30px; border-right: 1px solid var(--ftf-line); border-bottom: 1px solid var(--ftf-line); background: #101012; }
.ftf-feature-card:hover { background: #151517; }
.ftf-feature-number { display: inline-block; margin-bottom: 70px; color: var(--ftf-red-bright); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.ftf-feature-card p { margin-bottom: 0; font-size: .9rem; line-height: 1.75; }

.ftf-store-preview { background: var(--ftf-bg); }
.ftf-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ftf-category-card { min-width: 0; overflow: hidden; display: block; border: 1px solid var(--ftf-line); border-radius: var(--ftf-radius); background: var(--ftf-panel); text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.ftf-category-image { aspect-ratio: 16 / 10; overflow: hidden; background: #202024; }
.ftf-category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ftf-category-card:hover .ftf-category-image img { transform: scale(1.04); }
.ftf-category-placeholder { width: 100%; height: 100%; background: radial-gradient(circle at 50% 30%, rgba(170,35,25,.2), transparent 35%), linear-gradient(135deg,#242326,#0d0d0f); }
.ftf-category-content { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px; }
.ftf-category-content > span { color: var(--ftf-gold); font-size: .7rem; font-weight: 850; }
.ftf-category-content h3 { margin: 0 0 6px; }
.ftf-category-content strong { color: var(--ftf-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.ftf-category-card:hover { border-color: var(--ftf-line-strong); }
.ftf-category-card:hover strong { color: var(--ftf-gold-bright); }

.ftf-dashboard-content { border-top: 1px solid var(--ftf-line); background: #0d0d0f; }
.ftf-community-strip { padding-top: 0; background: #0d0d0f; }
.ftf-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

/* PAGE HERO / CMS */
.ftf-page-hero { padding-block: 100px 72px; background: linear-gradient(180deg, #121214, #0a0a0b); border-bottom: 1px solid var(--ftf-line); text-align: center; }
.ftf-page-hero-compact h1 { margin-bottom: 18px; }
.ftf-page-intro { max-width: 760px; margin-inline: auto; color: var(--ftf-text-soft); }
.ftf-page-intro p { margin: 0; font-size: 1.02rem; line-height: 1.8; }
.ftf-cms-content { max-width: 1040px; margin-inline: auto; color: var(--ftf-text-soft); }
.ftf-cms-content > *:first-child { margin-top: 0; }
.ftf-cms-content h2 { margin-top: 1.8em; }
.ftf-cms-content h3 { margin-top: 1.6em; }
.ftf-cms-content p, .ftf-cms-content li { line-height: 1.85; }
.ftf-cms-content a { color: var(--ftf-gold-bright); }
.ftf-cms-content img { display: block; max-width: 100%; border-radius: 10px; }
.ftf-cms-content blockquote { margin: 30px 0; padding: 20px 24px; border-left: 3px solid var(--ftf-red-bright); background: #131315; }
.ftf-cms-content hr { margin: 50px 0; border: 0; border-top: 1px solid var(--ftf-line); }

/* reusable CMS blocks */
.ftf-content-section { margin: 0 auto 30px; padding: clamp(26px, 4vw, 46px); border: 1px solid var(--ftf-line); border-radius: var(--ftf-radius); background: var(--ftf-panel); }
.ftf-content-section.center { text-align: center; }
.ftf-content-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0; }
.ftf-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin: 28px 0; }
.ftf-image-grid img { width: 100%; height: 360px; object-fit: cover; }
.ftf-rules-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 30px 0; }
.ftf-rule-card { padding: 24px; border: 1px solid var(--ftf-line); border-radius: 9px; background: #111113; }
.ftf-rule-card strong { display: block; margin-bottom: 8px; color: var(--ftf-text); }
.ftf-rule-card p { margin: 0; font-size: .9rem; }
.ftf-scroll-gallery { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scrollbar-color: var(--ftf-gold) #171719; }
.ftf-scroll-gallery > * { flex: 0 0 min(760px, 86%); scroll-snap-align: center; }
.ftf-scroll-gallery img { width: 100%; height: min(520px, 60vw); object-fit: cover; border-radius: 10px; }

/* PRODUCT LIST */
.ftf-products-section { background: var(--ftf-bg); }
.ftf-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.ftf-product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ftf-line); border-radius: var(--ftf-radius); background: var(--ftf-panel); box-shadow: 0 16px 38px rgba(0,0,0,.2); }
.ftf-product-card:hover { border-color: var(--ftf-line-strong); }
.ftf-product-media { display: block; aspect-ratio: 16/11; overflow: hidden; background: #202024; }
.ftf-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ftf-product-card:hover .ftf-product-media img { transform: scale(1.035); }
.ftf-product-placeholder { width: 100%; height: 100%; min-height: 130px; background: radial-gradient(circle at 50% 35%, rgba(171,37,26,.24), transparent 32%), linear-gradient(135deg, #27272a, #101012); }
.ftf-product-body { flex: 1; display: flex; flex-direction: column; padding: 28px; }
.ftf-product-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ftf-product-heading h2 { margin: 0; font-size: 1.5rem; }
.ftf-product-heading h2 a { text-decoration: none; }
.ftf-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: var(--ftf-gold-bright); white-space: nowrap; }
.ftf-price strong { font-size: 1.25rem; }
.ftf-price span { color: var(--ftf-muted); font-size: .68rem; font-weight: 800; }
.ftf-price del { width: 100%; color: #8d8984; font-size: .72rem; }
.ftf-product-summary { margin: 20px 0 26px; color: var(--ftf-text-soft); font-size: .88rem; line-height: 1.7; overflow: hidden; }
.ftf-product-summary > *:first-child { margin-top: 0; }
.ftf-product-summary > *:last-child { margin-bottom: 0; }
.ftf-product-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ftf-tier-card { position: relative; }
.ftf-tier-card.is-current-tier { border-color: rgba(198,154,74,.72); box-shadow: 0 0 0 1px rgba(198,154,74,.16), 0 20px 50px rgba(0,0,0,.28); }
.ftf-tier-badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 10px; border: 1px solid rgba(198,154,74,.45); border-radius: 5px; color: var(--ftf-gold-bright); background: rgba(9,9,10,.86); font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.ftf-login-callout { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 42px; border: 1px solid var(--ftf-line-strong); border-radius: var(--ftf-radius); background: linear-gradient(135deg, rgba(169,35,35,.12), #121214 50%); }
.ftf-login-callout h2 { margin-bottom: 10px; }
.ftf-login-callout p:last-child { margin-bottom: 0; }
.ftf-empty-state { max-width: 720px; margin-inline: auto; padding: 70px 30px; border: 1px solid var(--ftf-line); border-radius: var(--ftf-radius); text-align: center; background: var(--ftf-panel); }

/* PACKAGE PAGE */
.ftf-package-section { padding-top: 54px; }
.ftf-back-link { display: inline-block; margin-bottom: 28px; color: var(--ftf-muted); font-size: .78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.ftf-back-link:hover { color: var(--ftf-gold-bright); }
.ftf-package-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.ftf-package-gallery { min-width: 0; }
.ftf-media-gallery, .ftf-package-primary-image { position: relative; overflow: hidden; border: 1px solid var(--ftf-line); border-radius: var(--ftf-radius); background: #171719; box-shadow: var(--ftf-shadow); }
.ftf-media-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ftf-media-track::-webkit-scrollbar { display: none; }
.ftf-media-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 16/11; scroll-snap-align: center; }
.ftf-media-slide img, .ftf-media-slide iframe, .ftf-package-primary-image img { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }
.ftf-package-primary-image { aspect-ratio: 16/11; }
.ftf-gallery-control { position: absolute; top: 50%; width: 42px; height: 42px; border: 1px solid var(--ftf-line); border-radius: 50%; background: rgba(8,8,9,.78); color: #fff; transform: translateY(-50%); cursor: pointer; }
.ftf-gallery-prev { left: 16px; }.ftf-gallery-next { right: 16px; }
.ftf-package-purchase { position: sticky; top: 88px; padding: 36px; border: 1px solid var(--ftf-line); border-radius: var(--ftf-radius); background: var(--ftf-panel); }
.ftf-package-purchase h1 { font-size: clamp(2.3rem, 4vw, 4rem); margin-bottom: 24px; }
.ftf-package-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 28px; color: var(--ftf-gold-bright); }
.ftf-package-price strong { font-size: 2rem; }.ftf-package-price span { color: var(--ftf-muted); font-weight: 800; }.ftf-package-price del { width: 100%; color: var(--ftf-muted); }
.ftf-package-cta .ftf-button { width: 100%; }
.ftf-purchase-assurance { display: grid; gap: 9px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ftf-line); color: var(--ftf-muted); font-size: .74rem; }
.ftf-purchase-assurance span::before { content: "✓"; margin-right: 8px; color: var(--ftf-success); }
.ftf-package-description { margin-top: 70px; padding-top: 52px; border-top: 1px solid var(--ftf-line); }
.ftf-notice { margin-bottom: 20px; padding: 14px 16px; border: 1px solid rgba(220,157,82,.35); border-radius: 7px; color: #e2c498; background: rgba(220,157,82,.08); }

/* BASKET */
.ftf-basket-section { background: var(--ftf-bg); }
.ftf-basket-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 28px; align-items: start; }
.ftf-basket-items > form { display: grid; gap: 14px; }
.ftf-basket-item { display: grid; grid-template-columns: 92px minmax(0,1fr) 110px 110px auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--ftf-line); border-radius: 10px; background: var(--ftf-panel); }
.ftf-basket-item-image { width: 92px; height: 72px; overflow: hidden; border-radius: 7px; background: #202024; }
.ftf-basket-item-image img { width: 100%; height: 100%; object-fit: cover; }
.ftf-basket-item-info h2 { margin: 0 0 4px; font-size: 1.12rem; }.ftf-basket-item-info p { margin: 0; font-size: .78rem; }
.ftf-basket-quantity label { display: block; margin-bottom: 5px; color: var(--ftf-muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.ftf-basket-quantity input { width: 82px; padding: 9px 10px; border: 1px solid var(--ftf-line); border-radius: 6px; color: var(--ftf-text); background: #0e0e10; }
.ftf-basket-price { text-align: right; }.ftf-basket-price strong { display: block; color: var(--ftf-gold-bright); }.ftf-basket-price span { color: var(--ftf-muted); font-size: .68rem; }
.ftf-remove-button { color: #d78178; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.ftf-order-summary { position: sticky; top: 88px; padding: 28px; border: 1px solid var(--ftf-line-strong); border-radius: var(--ftf-radius); background: var(--ftf-panel); }
.ftf-order-summary h2 { margin-bottom: 24px; font-size: 1.55rem; }
.ftf-summary-row { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; color: var(--ftf-text-soft); border-bottom: 1px solid var(--ftf-line); }
.ftf-summary-total { margin-bottom: 22px; color: var(--ftf-text); }.ftf-summary-total strong { color: var(--ftf-gold-bright); }
.ftf-coupon-form { margin: 22px 0; }.ftf-coupon-form label { display: block; margin-bottom: 8px; color: var(--ftf-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.ftf-coupon-form > div { display: flex; }.ftf-coupon-form input { min-width: 0; flex: 1; padding: 11px; border: 1px solid var(--ftf-line); border-right: 0; border-radius: 6px 0 0 6px; color: var(--ftf-text); background: #0e0e10; }.ftf-coupon-form button { padding: 0 14px; border: 1px solid var(--ftf-line-strong); border-radius: 0 6px 6px 0; color: var(--ftf-gold-bright); background: #181719; cursor: pointer; }
.ftf-order-summary .ftf-checkout-button, .ftf-order-summary > .ftf-button { width: 100%; }
.ftf-continue-shopping { display: block; margin-top: 16px; color: var(--ftf-muted); text-align: center; font-size: .75rem; }
.ftf-applied-coupons { margin-bottom: 16px; }.ftf-applied-coupons > div { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ftf-text-soft); font-size: .8rem; }.ftf-applied-coupons a { color: #d78178; }
.ftf-empty-basket { padding-block: 90px; }.ftf-empty-icon { display: block; margin-bottom: 20px; color: var(--ftf-gold); font-size: 2rem; }

/* FORMS / LOGIN */
.ftf-auth-shell, .ftf-form-section { min-height: 620px; display: grid; place-items: center; padding: 72px 20px; background: radial-gradient(circle at 50% 15%, rgba(169,35,35,.12), transparent 34rem), var(--ftf-bg); }
.ftf-auth-card, .ftf-form-card { width: min(620px, 100%); padding: clamp(34px, 6vw, 58px); border: 1px solid var(--ftf-line-strong); border-radius: var(--ftf-radius); background: var(--ftf-panel); box-shadow: var(--ftf-shadow); text-align: center; }
.ftf-auth-card h1, .ftf-form-card h1 { margin-bottom: 16px; }.ftf-auth-card > p:not(.ftf-eyebrow), .ftf-form-card > p:not(.ftf-eyebrow) { max-width: 470px; margin: 0 auto 28px; }
.ftf-auth-form, .ftf-options-form { display: grid; gap: 18px; text-align: left; }
.ftf-auth-form label, .ftf-field label { display: block; margin-bottom: 7px; color: var(--ftf-text-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ftf-auth-form input, .ftf-field input, .ftf-field select { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--ftf-line); border-radius: 7px; color: var(--ftf-text); background: #0e0e10; outline: none; }
.ftf-auth-form input:focus, .ftf-field input:focus, .ftf-field select:focus { border-color: var(--ftf-gold); box-shadow: 0 0 0 3px rgba(198,154,74,.1); }
.ftf-auth-form .ftf-button { width: 100%; margin-top: 4px; }
.ftf-form-card { text-align: left; }.ftf-form-card > .ftf-eyebrow, .ftf-form-card > h1, .ftf-form-card > p { text-align: center; }
.ftf-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }

/* MODULES */
.ftf-module { min-width: 0; padding: 25px; border: 1px solid var(--ftf-line); border-radius: 10px; background: var(--ftf-panel); }
.ftf-module-main { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ftf-server-module button { display: block; width: 100%; padding: 10px; border: 1px solid var(--ftf-line); border-radius: 6px; color: var(--ftf-text); background: #0e0e10; cursor: pointer; }
.ftf-server-module small { display: block; margin-top: 10px; color: var(--ftf-muted); }
.ftf-payment-list { display: grid; gap: 12px; }.ftf-payment-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; }.ftf-payment-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--ftf-gold-bright); background: #242427; }.ftf-payment-item strong, .ftf-payment-item span { display: block; }.ftf-payment-item span, .ftf-payment-item small { color: var(--ftf-muted); font-size: .7rem; }
.ftf-goal-value { display: flex; align-items: baseline; gap: 6px; }.ftf-goal-value strong { color: var(--ftf-gold-bright); font-size: 1.5rem; }.ftf-goal-value span { color: var(--ftf-muted); }
.ftf-progress { height: 7px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: #29292d; }.ftf-progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--ftf-red-bright),var(--ftf-gold)); }
.ftf-top-customer { display: flex; align-items: center; gap: 14px; }.ftf-top-customer img { width: 48px; height: 48px; border-radius: 7px; }.ftf-top-customer strong, .ftf-top-customer span { display: block; }.ftf-top-customer span { color: var(--ftf-muted); font-size: .72rem; }

/* FOOTER */
.ftf-footer { border-top: 1px solid var(--ftf-line); background: #09090a; }
.ftf-footer-grid { padding-block: 68px; display: grid; grid-template-columns: 1.4fr .6fr .7fr; gap: 60px; }
.ftf-footer h2 { margin-bottom: 14px; font-size: 2.2rem; }.ftf-footer-copy { max-width: 520px; margin: 0; }
.ftf-footer-links { display: grid; align-content: start; gap: 9px; }.ftf-footer-links a { color: var(--ftf-text-soft); text-decoration: none; font-size: .82rem; }.ftf-footer-links a:hover { color: var(--ftf-gold-bright); }
.ftf-footer-join { display: grid; align-content: start; gap: 10px; }.ftf-footer-join span { color: var(--ftf-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }.ftf-footer-join button, .ftf-footer-join a { padding: 10px 12px; border: 1px solid var(--ftf-line); border-radius: 6px; color: var(--ftf-text); background: #111113; text-align: center; text-decoration: none; cursor: pointer; }
.ftf-footer-bottom { border-top: 1px solid var(--ftf-line); }.ftf-footer-bottom .ftf-container { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ftf-muted); font-size: .72rem; }

.ftf-toast { padding: 12px 0; border-bottom: 1px solid var(--ftf-line); color: var(--ftf-text); background: #1a1510; text-align: center; }
.ftf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }.ftf-reveal.is-visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .ftf-feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ftf-products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ftf-home-hero-grid { grid-template-columns: 1fr; }
  .ftf-hero-art { max-width: 700px; }
  .ftf-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ftf-package-layout { grid-template-columns: 1fr; }
  .ftf-package-purchase { position: static; }
  .ftf-basket-layout { grid-template-columns: 1fr; }
  .ftf-order-summary { position: static; }
}

@media (max-width: 820px) {
  .ftf-container { width: min(100% - 28px, var(--ftf-container)); }
  .ftf-server-label, .ftf-player-name { display: none; }
  .ftf-masthead, .ftf-masthead-inner { min-height: 190px; }
  .ftf-brand { width: min(780px, 86vw); }
  .ftf-nav-bar { display: none; }
  .ftf-menu-toggle { display: block; }
  .ftf-section-heading-split { grid-template-columns: 1fr; gap: 10px; }
  .ftf-module-grid { grid-template-columns: 1fr; }
  .ftf-footer-grid { grid-template-columns: 1fr 1fr; }.ftf-footer-grid > :first-child { grid-column: 1 / -1; }
  .ftf-basket-item { grid-template-columns: 74px minmax(0,1fr) auto; }
  .ftf-basket-item-image { width: 74px; height: 62px; }
  .ftf-basket-quantity { grid-column: 2; }.ftf-basket-price { grid-column: 3; grid-row: 1; }.ftf-remove-button { grid-column: 3; grid-row: 2; text-align: right; }
}

@media (max-width: 620px) {
  .ftf-utility-inner { min-height: 48px; }.ftf-server-copy strong { font-size: .7rem; }.ftf-copy-label { display: none; }
  .ftf-masthead, .ftf-masthead-inner { min-height: 155px; }.ftf-brand img { max-height: 128px; }
  .ftf-home-hero-grid { min-height: auto; padding-block: 64px; }.ftf-home-hero-copy > p:not(.ftf-eyebrow) { font-size: 1rem; }
  .ftf-hero-actions { display: grid; }.ftf-hero-actions .ftf-button { width: 100%; }
  .ftf-art-frame { min-height: 340px; padding: 24px; }
  .ftf-feature-grid, .ftf-products-grid, .ftf-category-grid, .ftf-image-grid, .ftf-rules-grid { grid-template-columns: 1fr; }
  .ftf-feature-number { margin-bottom: 38px; }
  .ftf-product-heading { display: block; }.ftf-product-heading .ftf-price { margin-top: 12px; }
  .ftf-product-actions { grid-template-columns: 1fr; }
  .ftf-login-callout { display: block; padding: 30px; }.ftf-login-callout .ftf-button { width: 100%; margin-top: 18px; }
  .ftf-package-purchase { padding: 26px; }
  .ftf-basket-item { grid-template-columns: 64px minmax(0,1fr); }.ftf-basket-item-image { width: 64px; height: 58px; }.ftf-basket-quantity, .ftf-basket-price, .ftf-remove-button { grid-column: 2; grid-row: auto; text-align: left; }.ftf-basket-price { display: flex; align-items: baseline; gap: 6px; }.ftf-basket-price strong { display: inline; }
  .ftf-footer-grid { grid-template-columns: 1fr; gap: 36px; }.ftf-footer-grid > :first-child { grid-column: auto; }.ftf-footer-bottom .ftf-container { padding-block: 16px; flex-direction: column; justify-content: center; text-align: center; }
  .ftf-form-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ftf-reveal { opacity: 1; transform: none; }
}

/* ========================================================================== */
/* FTF ABOUT PAGE 1.0.4                                                       */
/* ========================================================================== */

.ftf-about-page {
  display: grid;
  gap: clamp(54px, 8vw, 96px);
}

.ftf-about-page h2,
.ftf-about-page h3 {
  text-wrap: balance;
}

.ftf-about-page p {
  text-wrap: pretty;
}

.ftf-about-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: stretch;
}

.ftf-about-opening-copy {
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--ftf-line);
  border-radius: var(--ftf-radius);
  background:
    linear-gradient(135deg, rgba(169, 35, 35, .12), transparent 48%),
    var(--ftf-panel);
}

.ftf-about-opening-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
}

.ftf-about-lead {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.03rem;
  line-height: 1.9 !important;
}

.ftf-about-opening-statement {
  min-height: 100%;
  display: grid;
  align-content: space-between;
  gap: 40px;
  padding: clamp(30px, 5vw, 50px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--ftf-line-strong);
  border-radius: var(--ftf-radius);
  background:
    radial-gradient(circle at 70% 20%, rgba(198, 154, 74, .14), transparent 32%),
    linear-gradient(145deg, #1d1715, #0d0d0f 60%);
}

.ftf-about-opening-statement::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -110px;
  z-index: -1;
  border: 1px solid rgba(198, 154, 74, .22);
  border-radius: 50%;
}

.ftf-about-opening-statement > span {
  color: rgba(237, 201, 119, .72);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .26em;
}

.ftf-about-opening-statement blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ftf-text);
  background: none;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.ftf-about-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.ftf-about-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.ftf-about-section-heading > p {
  margin: 0;
  color: var(--ftf-muted);
}

.ftf-system-hub {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--ftf-line);
  border-radius: var(--ftf-radius);
  background: #0e0e10;
}

.ftf-system-tab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ftf-system-tab {
  min-height: 158px;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 20px;
  border: 1px solid var(--ftf-line);
  border-radius: 9px;
  color: var(--ftf-text);
  background: #151517;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.ftf-system-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 154, 74, .38);
  background: #1a1a1d;
}

.ftf-system-tab:focus-visible {
  outline: 2px solid var(--ftf-gold-bright);
  outline-offset: 3px;
}

.ftf-system-tab.is-active {
  border-color: rgba(214, 70, 50, .78);
  background:
    linear-gradient(145deg, rgba(169, 35, 35, .24), rgba(198, 154, 74, .06)),
    #171719;
  box-shadow: inset 0 -3px 0 var(--ftf-red-bright), 0 16px 32px rgba(0, 0, 0, .2);
}

.ftf-system-index {
  margin-bottom: auto;
  color: var(--ftf-gold);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.ftf-system-tab strong {
  font-size: 1.02rem;
}

.ftf-system-tab small {
  color: var(--ftf-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.ftf-system-panels {
  margin-top: 14px;
}

.ftf-system-panel {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 154, 74, .28);
  border-radius: 9px;
  background:
    radial-gradient(circle at 90% 20%, rgba(169, 35, 35, .13), transparent 34%),
    linear-gradient(135deg, #181719, #111113);
}

.ftf-system-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--ftf-red-bright), var(--ftf-gold));
}

.ftf-system-panel h3 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
}

.ftf-system-panel p:last-child {
  margin-bottom: 0;
}

.ftf-system-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ftf-system-points li {
  padding: 13px 15px 13px 38px;
  position: relative;
  border: 1px solid var(--ftf-line);
  border-radius: 7px;
  color: var(--ftf-text-soft);
  background: rgba(8, 8, 9, .38);
  font-size: .86rem;
  line-height: 1.6 !important;
}

.ftf-system-points li::before {
  content: "✦";
  position: absolute;
  left: 15px;
  top: 13px;
  color: var(--ftf-gold);
}

.ftf-about-story {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(36px, 6vw, 68px);
  border-top: 1px solid var(--ftf-line);
  border-bottom: 1px solid var(--ftf-line);
}

.ftf-about-story-marker {
  color: rgba(198, 154, 74, .36);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
}

.ftf-about-story-copy {
  max-width: 820px;
}

.ftf-about-story-copy h2 {
  margin-bottom: 28px;
}

.ftf-about-story-copy p {
  font-size: 1rem;
}

.ftf-about-emphasis {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--ftf-red-bright);
  color: var(--ftf-text) !important;
  background: linear-gradient(90deg, rgba(169, 35, 35, .12), transparent);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem) !important;
  font-weight: 750;
}

.ftf-about-problem {
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid var(--ftf-line);
  border-radius: var(--ftf-radius);
  background: var(--ftf-panel);
}

.ftf-contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ftf-contrast-card {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--ftf-line);
  border-radius: 9px;
  background: #111113;
}

.ftf-contrast-card.is-problem {
  box-shadow: inset 0 3px 0 rgba(214, 70, 50, .7);
}

.ftf-contrast-card.is-answer {
  box-shadow: inset 0 3px 0 rgba(198, 154, 74, .8);
}

.ftf-contrast-label {
  display: block;
  margin-bottom: 24px;
  color: var(--ftf-text);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ftf-contrast-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ftf-contrast-card li {
  padding-left: 24px;
  position: relative;
}

.ftf-contrast-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}

.ftf-contrast-card.is-problem li::before {
  content: "—";
  color: var(--ftf-red-bright);
}

.ftf-contrast-card.is-answer li::before {
  content: "+";
  color: var(--ftf-gold-bright);
}

.ftf-about-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(42px, 8vw, 90px);
  align-items: center;
}

.ftf-about-editorial-copy h2 {
  margin-bottom: 24px;
}

.ftf-identity-cloud {
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 12px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--ftf-line-strong);
  border-radius: var(--ftf-radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(169, 35, 35, .16), transparent 44%),
    #101012;
}

.ftf-identity-cloud span,
.ftf-identity-cloud strong {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--ftf-line);
  border-radius: 8px;
  color: var(--ftf-text-soft);
  background: #171719;
  text-align: center;
}

.ftf-identity-cloud strong {
  grid-column: 1 / -1;
  color: #1a1309;
  border-color: #efcb78;
  background: linear-gradient(180deg, #efd187, #b7802d);
}

.ftf-world-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ftf-line);
  border-left: 1px solid var(--ftf-line);
}

.ftf-world-principles article {
  min-height: 290px;
  padding: clamp(26px, 4vw, 40px);
  border-right: 1px solid var(--ftf-line);
  border-bottom: 1px solid var(--ftf-line);
  background: #111113;
}

.ftf-world-principles article:hover {
  background: #161618;
}

.ftf-world-principles span {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--ftf-red-bright);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.ftf-world-principles h3 {
  margin-bottom: 12px;
}

.ftf-world-principles p {
  margin-bottom: 0;
  font-size: .9rem;
}

.ftf-ancestors-section {
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid var(--ftf-line);
  border-radius: var(--ftf-radius);
  background: #0e0e10;
}

.ftf-ancestor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ftf-ancestor-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ftf-line);
  border-radius: 10px;
  background: var(--ftf-panel);
}

.ftf-ancestor-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--ftf-line);
  background: #1c1c1f;
}

.ftf-ancestor-portrait img,
.ftf-ancestor-card > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}

.ftf-ancestor-placeholder {
  display: grid;
  place-items: end start;
  padding: 24px;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, transparent 25%, rgba(8, 8, 9, .88)),
    radial-gradient(circle at 50% 35%, rgba(169, 35, 35, .3), transparent 34%),
    linear-gradient(145deg, #27272a, #101012);
}

.ftf-ancestor-placeholder::before,
.ftf-ancestor-placeholder::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(198, 154, 74, .24);
}

.ftf-ancestor-placeholder::before {
  inset: 14px;
  border-radius: 7px;
}

.ftf-ancestor-placeholder::after {
  width: 150px;
  height: 150px;
  left: 50%;
  top: 23%;
  transform: translateX(-50%);
  border-radius: 50%;
}

.ftf-ancestor-placeholder span {
  color: var(--ftf-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ftf-ancestor-copy {
  padding: 26px;
}

.ftf-ancestor-copy h3 {
  margin-bottom: 12px;
}

.ftf-ancestor-copy p:not(.ftf-eyebrow) {
  min-height: 106px;
  font-size: .88rem;
}

.ftf-ancestor-copy strong {
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--ftf-line);
  color: var(--ftf-gold-bright);
  font-size: .76rem;
  line-height: 1.55;
}

.ftf-about-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ftf-about-bento-card {
  min-height: 250px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--ftf-line);
  border-radius: 9px;
  background: #111113;
}

.ftf-about-bento-card.is-wide {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(169, 35, 35, .11), transparent 50%),
    #111113;
}

.ftf-bento-number {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--ftf-gold);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.ftf-about-bento-card h3 {
  margin-bottom: 12px;
}

.ftf-about-bento-card p {
  margin-bottom: 0;
  font-size: .9rem;
}

.ftf-about-goal {
  padding: clamp(42px, 8vw, 84px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ftf-line-strong);
  border-radius: var(--ftf-radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 154, 74, .13), transparent 42%),
    linear-gradient(145deg, #1a1211, #0d0d0f 58%);
  text-align: center;
}

.ftf-about-goal::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  bottom: -310px;
  z-index: -1;
  transform: translateX(-50%);
  border: 1px solid rgba(198, 154, 74, .22);
  border-radius: 50%;
}

.ftf-about-goal h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.ftf-about-goal > p {
  max-width: 760px;
  margin-inline: auto;
}

.ftf-about-goal-line {
  margin-top: 28px !important;
  color: var(--ftf-text) !important;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 800;
}

@media (max-width: 900px) {
  .ftf-about-opening,
  .ftf-about-editorial,
  .ftf-about-section-heading,
  .ftf-system-panel {
    grid-template-columns: 1fr;
  }

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

  .ftf-ancestor-grid {
    grid-template-columns: 1fr;
  }

  .ftf-ancestor-card {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
  }

  .ftf-ancestor-portrait,
  .ftf-ancestor-portrait img,
  .ftf-ancestor-card > img {
    height: 100%;
    aspect-ratio: auto;
  }

  .ftf-ancestor-copy p:not(.ftf-eyebrow) {
    min-height: 0;
  }

  .ftf-world-principles,
  .ftf-about-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftf-about-bento-card.is-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .ftf-about-page {
    gap: 52px;
  }

  .ftf-system-hub,
  .ftf-about-problem,
  .ftf-ancestors-section {
    padding: 22px;
  }

  .ftf-system-tab-grid,
  .ftf-contrast-grid,
  .ftf-world-principles,
  .ftf-about-bento {
    grid-template-columns: 1fr;
  }

  .ftf-system-tab {
    min-height: 128px;
  }

  .ftf-system-panel {
    padding: 28px 24px;
  }

  .ftf-about-story {
    grid-template-columns: 1fr;
    padding-inline: 8px;
  }

  .ftf-about-story-marker {
    font-size: 3.5rem;
  }

  .ftf-identity-cloud {
    min-height: 340px;
    padding: 22px;
  }

  .ftf-world-principles article {
    min-height: 240px;
  }

  .ftf-world-principles span {
    margin-bottom: 34px;
  }

  .ftf-ancestor-card {
    display: block;
  }

  .ftf-ancestor-portrait,
  .ftf-ancestor-portrait img,
  .ftf-ancestor-card > img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .ftf-about-bento-card.is-wide {
    grid-column: auto;
  }

  .ftf-about-goal .ftf-content-actions {
    display: grid;
  }

  .ftf-about-goal .ftf-button {
    width: 100%;
  }
}
/* =========================================================
   FTF CUSTOM 1.0.5 — ANCESTOR SHOWCASE ROW FIX
   Append this at the VERY END of ftf-custom.css.
   ========================================================= */

.ftf-ancestor-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 22px;
}

.ftf-ancestor-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ftf-line);
  border-radius: 10px;
  background: var(--ftf-panel);
}

.ftf-ancestor-portrait,
.ftf-ancestor-portrait img,
.ftf-ancestor-card > img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover;
}

.ftf-ancestor-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.ftf-ancestor-copy p:not(.ftf-eyebrow) {
  min-height: 0;
}

.ftf-ancestor-copy strong {
  margin-top: auto;
}

@media (max-width: 760px) {
  .ftf-ancestor-grid {
    grid-template-columns: 1fr !important;
  }

  .ftf-ancestor-card {
    display: block !important;
  }
}
.ftf-hero-art .ftf-art-frame::before,
.ftf-hero-art .ftf-art-frame::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   FTF CUSTOM 1.0.6 — HOMEPAGE STRUCTURE + PHOTO ALBUM
   Paste this at the VERY END of ftf-custom.css.
   ========================================================= */

/* New hero image frame: intentionally does not use .ftf-art-frame,
   so the old decorative gold circle can no longer appear. */
.ftf-home-page .ftf-hero-image-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--ftf-line-strong);
  border-radius: var(--ftf-radius);
  background: #171719;
  box-shadow: var(--ftf-shadow);
}

.ftf-home-page .ftf-hero-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(198, 154, 74, .28);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

/* Extra protection in case the old frame class remains anywhere in the hero. */
.ftf-home-page .ftf-art-frame-image::after,
.ftf-home-page .ftf-art-frame.ftf-art-frame-image::after,
.ftf-home-page .ftf-hero-art .ftf-art-frame::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keeps the experience section directly below the hero as a full-width row. */
.ftf-experience-section {
  position: relative;
  clear: both;
}

/* Wide photo album */
.ftf-photo-album-section {
  overflow: hidden;
  border-top: 1px solid var(--ftf-line);
  border-bottom: 1px solid var(--ftf-line);
  background:
    radial-gradient(circle at 50% 0%, rgba(135, 25, 20, .11), transparent 40%),
    #09090a;
}

.ftf-photo-album-container {
  width: min(100% - 48px, 1440px);
}

.ftf-photo-album-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.ftf-photo-album-heading h2 {
  margin-bottom: 0;
}

.ftf-photo-album-heading > p {
  max-width: 430px;
  margin: 0;
  text-align: right;
}

.ftf-photo-album {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ftf-line-strong);
  border-radius: 12px;
  background: #111113;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

.ftf-photo-album-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.ftf-photo-album-track::-webkit-scrollbar {
  display: none;
}

.ftf-photo-album-slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 8.5;
  scroll-snap-align: start;
  background: #151517;
}

.ftf-photo-album-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ftf-photo-album-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(226, 188, 103, .55);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 8, 9, .82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background-color .18s ease;
}

.ftf-photo-album-arrow:hover {
  border-color: var(--ftf-gold-bright);
  background: rgba(137, 28, 24, .92);
  transform: translateY(-50%) scale(1.06);
}

.ftf-photo-album-arrow span {
  margin-top: -4px;
  font-size: 2.35rem;
  line-height: 1;
}

.ftf-photo-album-arrow-prev {
  left: 22px;
}

.ftf-photo-album-arrow-next {
  right: 22px;
}

@media (max-width: 820px) {
  .ftf-photo-album-container {
    width: min(100% - 28px, 1440px);
  }

  .ftf-photo-album-heading {
    display: block;
  }

  .ftf-photo-album-heading > p {
    margin-top: 14px;
    text-align: left;
  }

  .ftf-photo-album-slide {
    aspect-ratio: 4 / 3;
  }

  .ftf-photo-album-arrow {
    width: 48px;
    height: 48px;
  }

  .ftf-photo-album-arrow-prev {
    left: 12px;
  }

  .ftf-photo-album-arrow-next {
    right: 12px;
  }
}

@media (max-width: 520px) {
  .ftf-home-page .ftf-hero-image-frame {
    padding: 9px;
  }

  .ftf-photo-album-slide {
    aspect-ratio: 1 / 1;
  }

  .ftf-photo-album-arrow {
    width: 42px;
    height: 42px;
  }

  .ftf-photo-album-arrow span {
    font-size: 1.9rem;
  }
}

/* =========================================================
   FTF CUSTOM 1.0.9 — ABOUT + FEATURES PAGES
   Paste at the VERY END of ftf-custom.css.
   ========================================================= */

html {
  scroll-behavior: smooth;
}

.ftf-cms-page .ftf-cms-content {
  width: 100%;
  max-width: none;
}

.ftf-origin-page,
.ftf-features-page {
  --page-panel: #141416;
  --page-panel-soft: #101012;
  --page-line: rgba(255, 255, 255, .09);
  --page-gold-line: rgba(211, 166, 76, .38);
  --page-red: #a92620;
  --page-red-bright: #cf392d;
  --page-gold: #e0b85d;
  width: 100%;
}

.ftf-origin-page h2,
.ftf-features-page h2 {
  letter-spacing: -.035em;
}

.ftf-origin-page h3,
.ftf-features-page h3 {
  letter-spacing: -.018em;
}

/* ---------------- ABOUT: ORIGIN STORY ---------------- */

.ftf-origin-intro,
.ftf-origin-formula {
  padding: clamp(30px, 5vw, 70px);
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(141, 29, 24, .13), transparent 38%),
    var(--page-panel);
}

.ftf-origin-intro {
  margin-bottom: 28px;
}

.ftf-origin-intro > h2 {
  max-width: 900px;
  margin: 10px 0 34px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: .98;
}

.ftf-origin-lead {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.ftf-origin-short-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
}

.ftf-origin-short-lines span {
  padding: 17px 18px;
  border-left: 2px solid var(--page-red-bright);
  background: rgba(255, 255, 255, .025);
  font-weight: 800;
}

.ftf-origin-quote {
  max-width: 980px;
  margin: 54px 0;
  padding: 30px 0 30px 34px;
  border-left: 3px solid var(--page-gold);
  color: #fff;
  font-size: clamp(1.65rem, 3.6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.12;
}

.ftf-origin-quote span {
  display: block;
  margin-bottom: 8px;
  color: var(--page-gold);
  font-size: .36em;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ftf-origin-copy {
  max-width: 820px;
}

.ftf-origin-copy p {
  font-size: 1.05rem;
  line-height: 1.82;
}

.ftf-origin-transition {
  color: #fff;
  font-size: 1.25rem !important;
  font-weight: 900;
}

.ftf-origin-section-heading {
  max-width: 920px;
}

.ftf-origin-section-heading h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.04;
}

.ftf-origin-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.ftf-origin-problem-card {
  position: relative;
  min-height: 220px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 9px;
  background: var(--page-panel-soft);
}

.ftf-origin-problem-number {
  display: block;
  margin-bottom: 30px;
  color: var(--page-gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.ftf-origin-problem-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.ftf-origin-problem-card p {
  margin: 0;
}

.ftf-origin-ending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--page-line);
}

.ftf-origin-ending p {
  margin: 0;
  color: #b9b6b2;
  font-size: 1.15rem;
}

.ftf-origin-ending strong {
  color: var(--page-gold);
  font-size: clamp(1.4rem, 2.7vw, 2.6rem);
}

/* ---------------- FEATURES: TOP HUB ---------------- */

.ftf-features-intro {
  max-width: 900px;
  margin-bottom: 34px;
}

.ftf-features-intro h2 {
  margin: 10px 0 18px;
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 1;
}

.ftf-features-intro > p:last-child {
  max-width: 700px;
}

.ftf-features-hub {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}

.ftf-features-hub-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  color: inherit;
  background: var(--page-panel);
  text-decoration: none;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.ftf-features-hub-card:hover {
  transform: translateY(-5px);
  border-color: var(--page-gold-line);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .34);
}

.ftf-features-hub-image {
  position: relative;
  flex: 1 1 56%;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(139, 36, 29, .26), transparent 28%),
    linear-gradient(145deg, #232326, #101011);
}

.ftf-features-hub-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--page-line);
  background: linear-gradient(to top, rgba(0, 0, 0, .36), transparent 55%);
  pointer-events: none;
}

.ftf-features-hub-image span,
.ftf-ancestor-feature-image span {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 2;
  color: #aaa7a3;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ftf-features-hub-image img,
.ftf-ancestor-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ftf-features-hub-copy {
  display: flex;
  flex: 0 0 44%;
  flex-direction: column;
  padding: 20px;
}

.ftf-features-hub-copy h3 {
  margin: 0 0 7px;
  font-size: 1.35rem;
}

.ftf-features-hub-copy p {
  margin: 0;
  color: #aaa7a3;
  line-height: 1.45;
}

.ftf-features-hub-copy strong {
  margin-top: auto;
  padding-top: 14px;
  color: var(--page-gold);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------------- FEATURES: DETAIL SECTIONS ---------------- */

.ftf-feature-detail-section {
  scroll-margin-top: 125px;
  padding: clamp(50px, 7vw, 100px) 0;
  border-top: 1px solid var(--page-line);
}

.ftf-feature-detail-heading {
  max-width: 900px;
  margin-bottom: 40px;
}

.ftf-feature-detail-heading h2 {
  margin: 10px 0 14px;
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  line-height: .95;
}

.ftf-feature-detail-heading > p:last-child {
  max-width: 720px;
  font-size: 1.06rem;
}

.ftf-feature-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.ftf-feature-story-card {
  padding: 30px;
  border: 1px solid var(--page-line);
  border-radius: 9px;
  background: var(--page-panel);
}

.ftf-feature-story-label {
  display: block;
  margin-bottom: 22px;
  color: var(--page-gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ftf-feature-story-card h3 {
  margin-bottom: 14px;
  font-size: 1.65rem;
}

.ftf-ancestor-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ftf-ancestor-feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  background: var(--page-panel-soft);
}

.ftf-ancestor-feature-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--page-line);
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 36, 29, .27), transparent 28%),
    linear-gradient(145deg, #242426, #0e0e0f);
}

.ftf-ancestor-feature-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.ftf-ancestor-feature-copy h3 {
  margin: 4px 0 10px;
  font-size: 1.45rem;
}

.ftf-star-list {
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--page-line);
  list-style: none;
}

.ftf-star-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 18px;
}

.ftf-star-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: .05em;
  color: var(--page-gold);
  font-size: .72em;
}

.ftf-unity-identity-block {
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid var(--page-gold-line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 36, 29, .14), transparent 40%),
    var(--page-panel);
}

.ftf-unity-identity-label {
  margin-bottom: 15px;
  color: var(--page-gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ftf-unity-types {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.ftf-unity-types span {
  padding: 9px 13px;
  border: 1px solid var(--page-line);
  border-radius: 999px;
  color: #fff;
  background: #101012;
  font-size: .82rem;
  font-weight: 800;
}

.ftf-feature-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ftf-feature-system-card,
.ftf-death-feature-card,
.ftf-additional-feature-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--page-line);
  border-radius: 9px;
  background: var(--page-panel);
}

.ftf-feature-system-number,
.ftf-additional-feature-icon {
  display: block;
  margin-bottom: 28px;
  color: var(--page-gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.ftf-feature-system-card h3,
.ftf-death-feature-card h3,
.ftf-additional-feature-card h3 {
  margin-bottom: 11px;
  font-size: 1.35rem;
}

.ftf-death-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.ftf-death-stage {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 25px;
  padding: 26px 30px;
  border: 1px solid var(--page-line);
  border-radius: 9px;
  background: var(--page-panel);
}

.ftf-death-stage.is-final {
  border-color: rgba(181, 47, 38, .55);
  background:
    linear-gradient(90deg, rgba(150, 31, 26, .12), transparent 44%),
    var(--page-panel);
}

.ftf-death-stage-marker {
  color: var(--page-gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ftf-death-stage-copy h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.ftf-death-stage-copy p {
  margin: 0;
}

.ftf-death-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ftf-additional-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ftf-additional-feature-card:last-child {
  grid-column: 1 / -1;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1100px) {
  .ftf-features-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftf-ancestor-showcase,
  .ftf-death-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .ftf-origin-short-lines,
  .ftf-origin-problem-grid,
  .ftf-feature-story-grid,
  .ftf-additional-feature-grid {
    grid-template-columns: 1fr;
  }

  .ftf-origin-ending {
    display: block;
  }

  .ftf-origin-ending strong {
    display: block;
    margin-top: 12px;
  }

  .ftf-features-hub {
    grid-template-columns: 1fr;
  }

  .ftf-features-hub-card {
    aspect-ratio: auto;
    min-height: 420px;
  }

  .ftf-ancestor-showcase,
  .ftf-feature-system-grid,
  .ftf-death-feature-grid {
    grid-template-columns: 1fr;
  }

  .ftf-death-stage {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ftf-additional-feature-card:last-child {
    grid-column: auto;
  }
}

/* =========================================================
   FTF CUSTOM 1.0.11 — FEATURES LAYOUT REPAIR
   Sanitizer-safe cards and section heading alignment.
   ========================================================= */

.ftf-features-page .ftf-features-hub {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 0 84px !important;
}

.ftf-features-page .ftf-features-hub-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  margin: 0 !important;
  border: 1px solid var(--page-line) !important;
  border-radius: 10px !important;
  background: var(--page-panel) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.ftf-features-page .ftf-features-hub-card:hover {
  transform: translateY(-5px);
  border-color: var(--page-gold-line) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .34);
}

.ftf-features-page .ftf-features-hub-image {
  position: relative !important;
  flex: 1 1 56% !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.ftf-features-page .ftf-features-hub-copy {
  display: flex !important;
  flex: 0 0 44% !important;
  flex-direction: column !important;
  min-height: 0 !important;
  padding: 20px !important;
}

.ftf-features-page .ftf-features-hub-copy h3 {
  margin: 0 0 7px !important;
  font-size: 1.35rem !important;
}

.ftf-features-page .ftf-features-hub-copy p {
  margin: 0 !important;
  color: #aaa7a3 !important;
  line-height: 1.45 !important;
}

.ftf-features-page .ftf-features-hub-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: fit-content !important;
  margin-top: auto !important;
  padding-top: 14px !important;
  color: var(--page-gold) !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
  letter-spacing: .1em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

.ftf-features-page .ftf-features-hub-link:hover {
  color: var(--ftf-gold-bright) !important;
}

.ftf-features-page .ftf-feature-detail-section {
  position: relative;
  scroll-margin-top: 105px;
  padding: clamp(64px, 8vw, 112px) 0 !important;
  border-top: 1px solid var(--page-line);
}

.ftf-features-page .ftf-feature-detail-heading {
  display: block !important;
  max-width: 900px !important;
  margin: 0 0 42px !important;
}

.ftf-features-page .ftf-feature-detail-heading h2 {
  margin: 0 0 14px !important;
  font-size: clamp(2.7rem, 6vw, 6.2rem) !important;
  line-height: .95 !important;
}

.ftf-features-page .ftf-feature-detail-heading > p {
  max-width: 720px !important;
  margin: 0 !important;
  color: var(--ftf-text-soft) !important;
  font-size: 1.06rem !important;
  line-height: 1.8 !important;
}

.ftf-features-page .ftf-feature-section-tag {
  display: inline-block !important;
  margin-top: 18px !important;
  padding-top: 13px !important;
  border-top: 1px solid var(--page-gold-line) !important;
  color: var(--page-gold) !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

@media (max-width: 1100px) {
  .ftf-features-page .ftf-features-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .ftf-features-page .ftf-features-hub {
    grid-template-columns: 1fr !important;
    margin-bottom: 64px !important;
  }

  .ftf-features-page .ftf-features-hub-card {
    aspect-ratio: auto !important;
    min-height: 410px !important;
  }

  .ftf-features-page .ftf-features-hub-image {
    flex: none !important;
    height: 245px !important;
  }

  .ftf-features-page .ftf-feature-detail-section {
    padding-block: 68px !important;
  }
}

/* =========================================================
   FTF CUSTOM 1.0.14 — RELIABLE FEATURE SCROLL + TRUE SPACING
   ========================================================= */

/* Do not rely on the outer section wrapper for spacing. Tebex may rewrite
   wrapper elements, but it consistently preserves the heading classes. */
.ftf-features-page .ftf-feature-detail-section {
  display: flow-root !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ftf-features-page .ftf-feature-detail-heading.ftf-feature-section-start {
  position: relative !important;
  max-width: 1020px !important;
  margin: 138px 0 58px !important;
  padding-top: 94px !important;
  border-top: 1px solid rgba(255, 255, 255, .12) !important;
  scroll-margin-top: 92px !important;
}

.ftf-features-page
.ftf-feature-detail-heading.ftf-feature-section-start.ftf-feature-section-first {
  margin-top: 80px !important;
}

.ftf-features-page
.ftf-feature-detail-heading.ftf-feature-section-start::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(270px, 36%);
  height: 1px;
  background: linear-gradient(
    90deg,
    #cf392d,
    #e0b85d,
    transparent
  );
}

.ftf-features-page .ftf-feature-detail-heading h2 {
  margin: 0 0 8px !important;
  font-size: clamp(2.7rem, 6vw, 6.2rem) !important;
  line-height: .95 !important;
}

.ftf-features-page .ftf-feature-detail-heading .ftf-feature-section-tag {
  display: block !important;
  width: fit-content !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--page-gold) !important;
  font-size: clamp(.7rem, .9vw, .84rem) !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

.ftf-features-page .ftf-feature-detail-heading > p {
  max-width: 780px !important;
  margin: 0 !important;
  color: var(--ftf-text-soft) !important;
  font-size: 1.06rem !important;
  line-height: 1.8 !important;
}

/* Learn More is now a real button whose class is mapped to a target heading.
   This avoids Tebex stripping or rewriting fragment IDs and data attributes. */
.ftf-features-page button.ftf-features-hub-link {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: fit-content !important;
  margin-top: auto !important;
  padding: 14px 0 0 !important;
  border: 0 !important;
  outline: 0 !important;
  color: var(--page-gold) !important;
  background: transparent !important;
  font: inherit !important;
  font-size: .74rem !important;
  font-weight: 900 !important;
  letter-spacing: .1em !important;
  line-height: 1.3 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
}

.ftf-features-page button.ftf-features-hub-link:hover {
  color: var(--ftf-gold-bright) !important;
}

.ftf-features-page button.ftf-features-hub-link:focus-visible {
  outline: 2px solid var(--page-gold) !important;
  outline-offset: 5px !important;
  border-radius: 3px;
}

@media (max-width: 720px) {
  .ftf-features-page .ftf-feature-detail-heading.ftf-feature-section-start {
    margin-top: 88px !important;
    padding-top: 68px !important;
    scroll-margin-top: 72px !important;
  }

  .ftf-features-page
  .ftf-feature-detail-heading.ftf-feature-section-start.ftf-feature-section-first {
    margin-top: 60px !important;
  }
}
