/*
 * 5.8.0 Sleek Fitness transformation gallery + story pages (public). Stand-alone: no framework, no icon font.
 * Brand: navy #0b1426, neon #39ff14 (always with dark text), white, grey, skin tone accents.
 */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/sf/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/sf/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/sf/inter-latin-800-normal.woff2) format('woff2'); }

:root {
  --n: #0b1426; --n2: #16223b; --n3: #22304d; --g: #39ff14; --g-ink: #128a00; --g-soft: #e9ffe3;
  --w: #fff; --bg: #f3f5f8; --line: #e1e6ee; --mut: #5c6878; --ink: #0a0f1a; --skin: #e8b48c;
  --r: 16px; --sh: 0 1px 2px rgba(11,20,38,.06), 0 10px 30px rgba(11,20,38,.08);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.tf-page { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--n); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
.tf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.tf-sr, .tf-skip { position: absolute; left: -9999px; }
.tf-skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--g); color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }

/* top bar */
.tf-top { background: var(--n); border-bottom: 3px solid var(--g); position: sticky; top: 0; z-index: 20; }
.tf-top-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.tf-brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .14em; font-size: 17px; white-space: nowrap; }
.tf-brand span { color: var(--g); }
.tf-nav { display: flex; align-items: center; gap: 18px; }
.tf-nav a { color: #dfe6f1; text-decoration: none; font-weight: 600; font-size: 14px; }
.tf-nav a:hover { color: var(--g); }
@media (max-width: 560px) { .tf-nav a:not(.tf-btn) { display: none; } }

/* buttons */
.tf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; font-family: inherit; }
.tf-btn:active { transform: scale(.98); }
.tf-btn-neon { background: var(--g); color: #000 !important; }
.tf-btn-neon:hover { background: #5dff40; }
.tf-btn-ghost { border-color: rgba(255,255,255,.35); color: #fff !important; background: transparent; }
.tf-btn-ghost:hover { border-color: var(--g); color: var(--g) !important; }
.tf-btn-line { border-color: var(--n); color: var(--n) !important; background: #fff; }
.tf-btn-line:hover { background: var(--n); color: #fff !important; }
.tf-btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* hero */
.tf-hero { background: radial-gradient(1200px 500px at 85% -10%, #1e3a2a 0%, transparent 60%), linear-gradient(160deg, var(--n) 0%, #0e1a33 70%, #0b1426 100%); color: #fff; overflow: hidden; }
.tf-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.tf-kicker { color: var(--g); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; margin: 0 0 12px; }
.tf-hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.tf-hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--g); }
.tf-lead { font-size: clamp(17px, 2.2vw, 21px); color: #c9d3e3; margin: 0 0 24px; }
.tf-intro .tf-lead { color: var(--mut); }
.tf-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tf-count { margin: 22px 0 0; color: #9fb0c8; font-size: 14px; }
.tf-count b { color: var(--g); font-size: 18px; }
.tf-hero-pic .tfc { box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.tf-hero-cap { display: block; margin-top: 12px; color: #dfe6f1; text-decoration: none; font-size: 14px; }
.tf-hero-cap b { color: #fff; }
@media (max-width: 900px) { .tf-hero-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; gap: 28px; } }

/* filters */
.tf-gal { padding-top: 36px; padding-bottom: 20px; }
.tf-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tf-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tf-chips::-webkit-scrollbar { display: none; }
.tf-fchip { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.tf-fchip small { color: var(--mut); font-weight: 600; margin-left: 2px; }
.tf-fchip.on { background: var(--n); color: #fff; border-color: var(--n); }
.tf-fchip.on small { color: var(--g); }
.tf-search input { width: 260px; max-width: 100%; min-height: 42px; border-radius: 999px; border: 1px solid var(--line); padding: 0 16px; font: inherit; background: #fff; }
@media (max-width: 640px) { .tf-search, .tf-search input { width: 100%; } }

/* grid + cards */
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tf-grid { grid-template-columns: 1fr; gap: 18px; } }
.tf-card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; animation: tfIn .45s ease both; }
.tf-card.is-feat { outline: 2px solid var(--g); }
@keyframes tfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tf-card { animation: none; } html { scroll-behavior: auto; } }
.tf-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tf-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tf-chip { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--g-soft); color: var(--g-ink); }
.tf-chip-f { background: var(--n); color: var(--g); }
.tf-name { font-size: 21px; font-weight: 800; margin: 0; }
.tf-title { margin: 2px 0 10px; color: var(--mut); font-weight: 600; }
.tf-sum { color: #2d3747; font-size: 15px; margin: 10px 0 14px; }
.tf-body .tf-btn { margin-top: auto; align-self: flex-start; }
.tf-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-stats div { background: var(--bg); border-radius: 10px; padding: 7px 11px; min-width: 76px; }
.tf-stats b { display: block; font-size: 15px; font-weight: 800; }
.tf-stats span { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tf-stats .tf-chg { background: var(--n); }
.tf-stats .tf-chg b { color: var(--g); }
.tf-stats .tf-chg span { color: #b8c4d6; }
.tf-more { text-align: center; padding: 26px 0 10px; }
.tf-empty { text-align: center; background: #fff; border-radius: var(--r); padding: 44px 20px; box-shadow: var(--sh); }
.tf-empty h2 { font-size: 22px; }

/* before / after slider */
.tfc { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0e1626; user-select: none; -webkit-user-select: none; --p: 50%; touch-action: pan-y; }
.tfc-big { border-radius: var(--r); }
.tfc picture, .tfc .tfc-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tfc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.tfc-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.tfc-lbl { position: absolute; top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .14em; padding: 5px 9px; border-radius: 6px; pointer-events: none; }
.tfc-lb { left: 12px; background: rgba(11,20,38,.82); color: #fff; }
.tfc-la { right: 12px; background: var(--g); color: #000; }
.tfc-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: var(--g); pointer-events: none; box-shadow: 0 0 12px rgba(57,255,20,.6); }
.tfc-knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--g); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.tfc-knob::before, .tfc-knob::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.tfc-knob::before { left: 6px; border-right-color: #000; }
.tfc-knob::after { right: 6px; border-left-color: #000; }
.tfc-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.tfc-range:focus-visible + .tfc-zoom, .tfc:focus-within .tfc-knob { outline: 3px solid #fff; }
.tfc-zoom { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(11,20,38,.75); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.tfc-zoom:hover { background: var(--n); color: var(--g); }

/* story page */
.tf-preview { background: #ffe9a8; color: #5a4300; text-align: center; padding: 8px 12px; font-weight: 800; font-size: 14px; }
.tf-crumb { font-size: 14px; color: var(--mut); padding: 18px 0 6px; }
.tf-crumb a { color: var(--mut); }
.tf-intro { display: flex; gap: 18px; align-items: center; padding: 10px 0 22px; }
.tf-intro h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin: 0; }
.tf-intro .tf-lead { margin: 4px 0 6px; }
.tf-intro .tf-kicker { color: var(--g-ink); }
.tf-by { margin: 0; font-size: 14px; color: var(--mut); }
.tf-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; border: 3px solid var(--g); }
.tf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tf-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
@media (max-width: 900px) { .tf-story-grid { grid-template-columns: 1fr; } }
.tf-viewer { margin-bottom: 14px; }
.tf-view-tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; margin-bottom: 10px; box-shadow: var(--sh); }
.tf-view-tabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--mut); }
.tf-view-tabs button.on { background: var(--n); color: #fff; }
.tf-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tf-side figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #0e1626; }
.tf-side img { width: 100%; height: auto; }
.tf-side figcaption { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; padding: 4px 8px; border-radius: 6px; background: rgba(11,20,38,.82); color: #fff; }
.tf-side figure + figure figcaption { background: var(--g); color: #000; }
.tf-note { font-size: 13px; color: var(--mut); }
.tf-sec { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 22px 22px 18px; margin: 18px 0; }
.tf-sec h2 { font-size: 22px; font-weight: 800; }
.tf-sec h3 { font-size: 17px; margin-top: 14px; }
.tf-sec p { margin: 0 0 12px; }
.tf-step { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--g-ink); margin: 0 0 4px !important; }
.tf-big { font-size: 20px; }
.tf-big b { background: var(--n); color: var(--g); padding: 2px 10px; border-radius: 8px; }
.tf-quote { margin: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--g); font-size: 18px; font-style: italic; color: #1b2433; }
.tf-quote cite { display: block; font-style: normal; font-size: 14px; color: var(--mut); font-weight: 600; margin-top: 8px; }
.tf-final { background: var(--n); color: #fff; }
.tf-final .tf-step { color: var(--g); }
.tf-final .tf-btn-line { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.4); }
.tf-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tf-extras figure { margin: 0; }
.tf-extras figcaption { font-size: 13px; color: var(--mut); margin-top: 4px; }
.tf-x { border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; border-radius: 10px; overflow: hidden; display: block; }
.tf-x img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.tf-side-col { position: sticky; top: 80px; display: grid; gap: 16px; }
.tf-share, .tf-join, .tf-remove { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.tf-share h2, .tf-join h2 { font-size: 18px; font-weight: 800; }
.tf-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tf-sh { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; cursor: pointer; text-align: center; padding: 4px 8px; }
.tf-sh:hover { border-color: var(--n); }
.tf-sh-wa { background: #25d366; border-color: #25d366; color: #fff; }
.tf-sh-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.tf-join { background: var(--n); color: #fff; }
.tf-join p { color: #b8c4d6; font-size: 14px; }
.tf-mini { font-size: 13px; color: var(--mut); margin: 8px 0 0; min-height: 1em; }
.tf-remove summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--mut); }
.tf-remove label { display: block; font-size: 13px; font-weight: 600; margin-top: 10px; }
.tf-remove input, .tf-remove textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.tf-remove .tf-btn { margin-top: 12px; }
.tf-more-stories { background: transparent; box-shadow: none; padding: 10px 0 30px; }

/* CTA + footer */
.tf-cta { background: var(--n); color: #fff; padding: 52px 0; margin-top: 30px; text-align: center; }
.tf-cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.tf-cta p { color: #b8c4d6; max-width: 620px; margin: 0 auto 22px; }
.tf-cta .tf-hero-cta { justify-content: center; }
.tf-foot { background: #070d19; color: #9aa8bd; font-size: 13px; padding: 30px 0 40px; }
.tf-foot a { color: #dfe6f1; }
.tf-foot b { color: #fff; }
.tf-copy { margin-top: 18px; }

/* lightbox (full screen + zoom) */
.tf-lb { position: fixed; inset: 0; z-index: 100; background: rgba(4,8,16,.96); display: flex; flex-direction: column; }
.tf-lb[hidden] { display: none; }
.tf-lb-bar { display: flex; gap: 8px; justify-content: flex-end; padding: 10px; }
.tf-lb-bar button { min-width: 44px; height: 44px; border-radius: 10px; border: 0; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 700; cursor: pointer; padding: 0 12px; }
.tf-lb-bar button:hover { background: var(--g); color: #000; }
.tf-lb-stage { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; }
.tf-lb-stage .tfc { width: min(92vw, calc((100vh - 90px) * .8)); max-height: calc(100vh - 90px); aspect-ratio: 4 / 5; }
.tf-lb-stage .tfc img { object-fit: contain; object-position: center; background: #000; }
.tf-lb-inner { transition: transform .2s ease; transform-origin: center; }
.tf-lb-one { max-width: 94vw; max-height: calc(100vh - 90px); object-fit: contain; }
.tf-lb.zoomed .tf-lb-inner { cursor: grab; transition: none; }

/* homepage section (also used by the embed on sleek.fitness) */
.tf-home { padding: 60px 0; background: var(--n); color: #fff; }
.tf-home h2 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; text-align: center; }
.tf-home h2 span { color: var(--g); }
