@property --tone { syntax: "<color>"; inherits: true; initial-value: #4a7fd4; }
@property --tone-2 { syntax: "<color>"; inherits: true; initial-value: #2fa596; }
/* TB3 Strength
   Gunmetal, machined edges, hull-plate greebling. One shared stylesheet, mobile first. */

:root {
  --bg: #1e2226;
  --bg-2: #242a2f;
  --panel: #2a3036;
  --panel-2: #323940;
  --panel-3: #3c444c;
  --edge: rgba(255, 255, 255, 0.08);
  --edge-2: rgba(255, 255, 255, 0.15);
  --edge-3: rgba(255, 255, 255, 0.26);
  --steel: #c3c8cc;
  --steel-hi: #f1f2f3;
  --steel-2: #8a9197;
  --text: #eef0f1;
  --muted: #b1b8be;
  --faint: #838c93;
  --amber: var(--tone);
  --amber-hi: color-mix(in srgb, var(--tone) 58%, #ffffff);
  --amber-lo: color-mix(in srgb, var(--tone) 16%, transparent);
  --forest: #4f7a5c;
  --forest-hi: #94c3a0;
  --forest-lo: rgba(79, 122, 92, 0.16);
  --signal: #c9503f;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --cut: 14px;
  --cut-sm: 8px;
  --gutter: 16px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6; font-variation-settings: "wdth" 100;
  overflow-x: clip; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #15171a; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ================= Background scene ================= */
#scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }
#scene .light {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(170, 185, 196, 0.2), transparent 70%),
    radial-gradient(45% 40% at 6% 22%, color-mix(in srgb, var(--tone) 8%, transparent), transparent 70%),
    radial-gradient(55% 50% at 96% 62%, rgba(79, 122, 92, 0.16), transparent 70%),
    radial-gradient(70% 60% at 30% 112%, rgba(79, 122, 92, 0.14), transparent 70%),
    linear-gradient(180deg, #262b30 0%, #1f2327 55%, #1b1f22 100%);
}
#scene .brushed {
  position: absolute; inset: 0; opacity: 0.5;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px, rgba(0,0,0,0.03) 3px 4px, transparent 4px 7px);
}
#scene .hull { position: absolute; left: 0; right: 0; top: 0; height: 300vh; background-size: 520px 520px; opacity: 1; will-change: transform; }
#scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#scene .grain {
  position: absolute; inset: -50%; opacity: 0.11; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#scene .vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0,0,0,0.32)); }
.page { position: relative; z-index: 1; overflow-x: clip; }

/* ================= Type ================= */
h1, h2, h3, h4 {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800;
  line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; margin: 0 0 0.45em; color: var(--steel-hi);
}
h1 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--muted); max-width: 44ch; line-height: 1.55; }
.label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--f-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-2);
}
.label::before { content: ""; width: 7px; height: 7px; background: var(--amber); box-shadow: 0 0 10px color-mix(in srgb, var(--tone) 70%, transparent); flex: 0 0 7px; }
.label.green::before { background: var(--forest-hi); box-shadow: 0 0 10px rgba(143,179,147,0.7); }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.amber { color: var(--amber); }
.dim { color: var(--steel-2); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.metal-text {
  background: linear-gradient(180deg, #ffffff 0%, #d5d9dc 38%, #8b9298 52%, #c9ced2 70%, #eef0f1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ================= Layout ================= */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(36px, 5vw, 64px) 0; }
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.center { text-align: center; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.head h2 { margin: 0; }
.head p { margin: 10px 0 0; }

/* ================= Hull panel (cut corners + machined edge) ================= */
.hull {
  position: relative;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--edge-3) 50%, transparent calc(50% + 1px)) top left / var(--cut) var(--cut) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--edge-2) 50%, transparent calc(50% + 1px)) bottom right / var(--cut) var(--cut) no-repeat,
    linear-gradient(180deg, var(--panel-2), var(--panel) 45%, #272c32) padding-box,
    linear-gradient(180deg, var(--edge-3), var(--edge) 30%, rgba(0,0,0,0.4)) border-box;
  border: 1px solid transparent;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.pad { padding: clamp(20px, 3.2vw, 32px); }

/* ================= Greeble strip ================= */
.greeble { height: 34px; width: 100%; opacity: 0.9; }
.greeble svg { width: 100%; height: 100%; }

/* ================= HUD photo frame ================= */
.hud { position: relative; overflow: hidden; background: #0f1113; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.hud img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateY(var(--py, 0px)); transition: transform 0.2s linear; }
.hud::before {
  content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--steel), var(--steel)) top left / 22px 1.5px no-repeat,
    linear-gradient(var(--steel), var(--steel)) top left / 1.5px 22px no-repeat,
    linear-gradient(var(--steel), var(--steel)) top right / 22px 1.5px no-repeat,
    linear-gradient(var(--steel), var(--steel)) top right / 1.5px 22px no-repeat,
    linear-gradient(var(--steel), var(--steel)) bottom left / 22px 1.5px no-repeat,
    linear-gradient(var(--steel), var(--steel)) bottom left / 1.5px 22px no-repeat,
    linear-gradient(var(--amber), var(--amber)) bottom right / 22px 1.5px no-repeat,
    linear-gradient(var(--amber), var(--amber)) bottom right / 1.5px 22px no-repeat;
  opacity: 0.6;
}
.hud .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,17,20,0) 50%, rgba(14,17,20,0.82)); }

/* ================= Header ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(38,43,48,0.92), rgba(30,34,38,0.88));
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 1.3rem; letter-spacing: 0.02em; color: var(--steel-hi); }
.brand-text span { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.32em; color: var(--steel-2); margin-top: 4px; }
.nav { display: none; gap: 2px; align-items: center; }
.nav a { position: relative; text-decoration: none; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--steel-hi); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; gap: 10px; flex-wrap: nowrap; }
.menu-btn { width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; background: var(--panel); border: 1px solid var(--edge-2); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--steel); position: relative; content: ""; transition: transform 0.3s var(--ease); }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; padding: 6px var(--gutter) 22px; border-top: 1px solid var(--edge); }
.menu-open .mobile-nav { display: grid; gap: 2px; }
.mobile-nav a { text-decoration: none; padding: 14px 4px; font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; color: var(--steel-hi); border-bottom: 1px solid var(--edge); display: flex; justify-content: space-between; align-items: center; }
.mobile-nav a .mono { font-size: 0.7rem; }
.mobile-nav .btn { margin-top: 14px; justify-content: center; font-size: 1rem; }
@media (min-width: 1000px) {
  .nav, .header-cta { display: flex; }
  .menu-btn, .mobile-nav, .menu-open .mobile-nav { display: none; }
}

/* ================= Buttons ================= */
.btn {
  --c: var(--cut-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; min-height: 50px; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; position: relative;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, filter 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-amber { background: linear-gradient(180deg, var(--amber-hi), var(--amber) 55%, color-mix(in srgb, var(--tone) 70%, #000)); color: #15181b; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-amber:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-amber::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.9s var(--ease); }
.btn-amber:hover::after { transform: translateX(120%); }
.btn-steel { background: linear-gradient(180deg, #f4f5f6, #c9ced2 55%, #9aa1a7); color: #15171a; box-shadow: inset 0 1px 0 #fff; }
.btn-steel:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-ghost { background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)); color: var(--steel-hi); box-shadow: inset 0 0 0 1px var(--edge-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px var(--edge-3); transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: 0.88rem; --c: 6px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ================= Hero ================= */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 48px; } }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.3rem, 4.3vw, 3.9rem); font-variation-settings: "wdth" 112; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero h1 .ln > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.09s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
.hero .row { margin-top: 28px; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--edge); }
.specs div { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.specs svg { width: 18px; height: 18px; flex: 0 0 18px; }
.hero-photo { aspect-ratio: 5 / 4; width: 100%; }
@media (max-width: 979px) { .hero-photo { aspect-ratio: 16 / 10; } }

/* ================= Plans ================= */
.plans { display: grid; gap: 18px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; padding: 30px 26px 26px; }
.plan.featured { --edge-3: color-mix(in srgb, var(--amber-hi) 60%, transparent); --edge-2: color-mix(in srgb, var(--tone) 35%, transparent); background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--amber) 50%, transparent calc(50% + 1px)) top left / var(--cut) var(--cut) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--amber) 50%, transparent calc(50% + 1px)) bottom right / var(--cut) var(--cut) no-repeat,
    linear-gradient(180deg, #2f3238, #24272c 45%, #1f2226) padding-box,
    linear-gradient(180deg, color-mix(in srgb, var(--amber-hi) 75%, transparent), color-mix(in srgb, var(--tone) 20%, transparent) 40%, rgba(0,0,0,0.4)) border-box; }
.plan .tagline { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-2); }
.plan.featured .tagline { color: var(--amber-hi); }
.plan h3 { margin: 14px 0 6px; font-size: 1.5rem; }
.price { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800; font-size: 3rem; line-height: 1; color: var(--steel-hi); letter-spacing: -0.02em; }
.price small { font-family: var(--f-body); font-variation-settings: "wdth" 100; font-size: 0.9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan .price { margin: 4px 0 12px; }
.plan > p:not(.price) { color: var(--muted); margin: 0 0 18px; font-size: 0.97rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.ticks li { display: flex; gap: 12px; font-size: 0.95rem; align-items: flex-start; }
.ticks li svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 4px; }
.ticks li.off { color: var(--faint); }

/* ================= Goal tiles ================= */
.goals { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .goals { grid-template-columns: repeat(5, 1fr); } }
.goal { position: relative; display: block; text-decoration: none; aspect-ratio: 3 / 4; }
.goal:first-child { grid-column: span 2; aspect-ratio: auto; min-height: 240px; }
@media (min-width: 900px) { .goal:first-child { grid-column: auto; aspect-ratio: 3 / 4; } }
.goal .hud { position: absolute; inset: 0; }
.goal img { transition: transform 1.2s var(--ease), filter 0.6s; filter: brightness(0.82); }
.goal:hover img { transform: scale(1.14); filter: brightness(1); }
.goal .txt { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 18px; }
.goal .txt .mono { color: var(--amber-hi); font-size: 0.66rem; }
.goal h3 { margin: 6px 0 0; font-size: clamp(1rem, 1.5vw, 1.2rem); font-variation-settings: "wdth" 100; line-height: 1.05; }
.goal .go { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 0.85rem; font-weight: 700; color: var(--steel); opacity: 0.85; }
.goal .go svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.goal:hover .go svg { transform: translateX(4px); }

/* ================= Steps ================= */
.steps { display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 28px 24px 26px; }
.step .n { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.16em; color: var(--amber); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step .n::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--edge-2), transparent); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ================= Results ================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { background: rgba(255,255,255,0.03); border: 0; box-shadow: inset 0 0 0 1px var(--edge-2); color: var(--muted); padding: 9px 16px; cursor: pointer; font-weight: 600; font-size: 0.88rem; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: all 0.2s; }
.filter:hover { color: var(--steel-hi); box-shadow: inset 0 0 0 1px var(--edge-3); }
.filter.on { background: var(--steel); color: #15171a; box-shadow: none; }
.quotes { display: grid; gap: 18px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { padding: 26px 24px 22px; display: flex; flex-direction: column; }
.quote .result { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.quote .result b { font-family: var(--f-display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--steel-hi); }
.quote .result span { color: var(--amber-hi); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.quote blockquote { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.6; flex: 1; }
.quote .who { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 0.86rem; color: var(--muted); }
.quote .who b { color: var(--steel-hi); }
.photo-slot { aspect-ratio: 4 / 3; display: grid; place-items: center; margin: -26px -24px 20px; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 10px, transparent 10px 20px), #1b1e22; border-bottom: 1px solid var(--edge); }
.photo-slot span { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* ================= Tags ================= */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; color: var(--steel); background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--edge-2); }
.tag.amber { color: var(--amber-hi); background: var(--amber-lo); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent); }
.tag.green { color: var(--forest-hi); background: var(--forest-lo); box-shadow: inset 0 0 0 1px rgba(143,179,147,0.3); }
.tag.sample { color: var(--faint); }

/* ================= Programs ================= */
.prog-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .prog-grid { grid-template-columns: repeat(3, 1fr); } }
.prog { display: flex; flex-direction: column; text-decoration: none; transition: transform 0.45s var(--ease); }
.prog:hover { transform: translateY(-4px); }
.prog .hud { aspect-ratio: 16 / 9; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.prog .hud img { filter: brightness(0.85); transition: transform 1s var(--ease), filter 0.5s; }
.prog:hover .hud img { transform: scale(1.14); filter: brightness(1); }
.prog .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prog .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prog h3 { margin: 4px 0 0; font-size: 1.35rem; }
.prog p { color: var(--muted); margin: 0; font-size: 0.95rem; flex: 1; }
.prog .foot { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--edge); }
.prog .price { font-size: 2rem; }

/* ================= Tables ================= */
.table-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.matrix th, .matrix td { padding: 15px 14px; border-bottom: 1px solid var(--edge); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-size: 1rem; text-transform: uppercase; color: var(--steel-hi); vertical-align: bottom; }
.matrix td svg { margin: 0 auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th { text-align: left; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 12px; border-bottom: 1px solid var(--edge-2); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--edge); vertical-align: middle; }

/* ================= Forms ================= */
.form { display: grid; gap: 16px; }
.form .two { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field > label, .field > .flabel { font-size: 0.86rem; font-weight: 700; color: var(--steel); }
.input, .form select, .form textarea {
  width: 100%; padding: 14px 15px; border: 0; background: #1d2125; box-shadow: inset 0 0 0 1px var(--edge-2), inset 0 2px 6px rgba(0,0,0,0.4);
  transition: box-shadow 0.2s; font-size: 1rem; border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--amber), inset 0 2px 6px rgba(0,0,0,0.4); }
.form textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 14px; font-size: 0.9rem; font-weight: 600; color: var(--muted); background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--edge-2); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: all 0.2s; }
.chips input:checked + span { background: var(--amber-lo); color: var(--amber-hi); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 60%, transparent); }
.chips input:focus-visible + span { outline: 2px solid var(--amber); }
.form-msg { padding: 14px 16px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: rgba(91,122,95,0.2); box-shadow: inset 3px 0 0 var(--forest-hi); }
.form-msg.err { display: block; background: rgba(201,80,63,0.12); box-shadow: inset 3px 0 0 var(--signal); color: #f2c1b9; }

/* ================= FAQ ================= */
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-size: 1.05rem; color: var(--steel-hi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--amber); transition: transform 0.35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--muted); padding: 0 0 20px; margin: 0; max-width: 68ch; }

/* ================= Page head ================= */
.page-head { padding: clamp(44px, 8vw, 100px) 0 clamp(24px, 4vw, 44px); }
.crumbs { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.crumbs svg { width: 14px; height: 14px; transform: rotate(180deg); }

/* ================= Band ================= */
.band { position: relative; overflow: hidden; }
.band .bg { position: absolute; inset: 0; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transform: translateY(var(--py, 0px)) scale(1.12); }
.band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,31,34,0.95) 32%, rgba(26,40,32,0.5)); }
.band .inner { position: relative; z-index: 1; padding: clamp(30px, 6vw, 64px); }

/* ================= Footer ================= */
.site-footer { position: relative; z-index: 1; margin-top: 40px; background: linear-gradient(180deg, rgba(24,28,31,0.7), #181b1e); }
.site-footer .wrap { padding-top: 46px; padding-bottom: 30px; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--f-mono); font-variation-settings: normal; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--faint); margin-bottom: 14px; }
.site-footer a { display: block; text-decoration: none; color: var(--muted); padding: 5px 0; font-size: 0.95rem; }
.site-footer a:hover { color: var(--steel-hi); }
.footer-base { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; }

/* ================= Reveal ================= */
.reveal { clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease); }
.reveal.in { clip-path: inset(0 0 -2px 0); }
.hull.reveal { clip-path: polygon(var(--cut) 0, 100% 0, 100% 0, 100% 0, 0 0, 0 var(--cut)); transition: clip-path 0.8s var(--ease); }
.hull.reveal.in { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.fade { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade.in { opacity: 1; transform: none; }

/* ================= Modal + toast ================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: var(--gutter); background: rgba(8,9,10,0.75); backdrop-filter: blur(6px); }
.modal.open { display: grid; animation: fadeIn 0.25s; }
.modal .hull { max-width: 460px; width: 100%; animation: pop 0.4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0.94) translateY(10px); opacity: 0; } }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(160%); background: #2a2f35; box-shadow: inset 3px 0 0 var(--amber), 0 20px 40px -14px #000; color: var(--steel-hi); padding: 13px 18px; font-weight: 600; font-size: 0.92rem; transition: transform 0.45s var(--ease); max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ================= App shell (member + admin) ================= */
.app { display: grid; min-height: calc(100vh - 70px); }
@media (min-width: 960px) { .app { grid-template-columns: 250px 1fr; } }
.app-side { border-right: 1px solid var(--edge); padding: 18px 14px; background: rgba(26,30,34,0.9); display: flex; gap: 6px; overflow-x: auto; position: sticky; top: 70px; z-index: 5; align-self: start; }
@media (min-width: 960px) { .app-side { flex-direction: column; overflow: visible; min-height: calc(100vh - 70px); } }
@media (max-width: 959px) { .app-side { border-right: 0; border-bottom: 1px solid var(--edge); padding: 10px 12px; } }
.app-side .side-label { display: none; }
@media (min-width: 960px) { .app-side .side-label { display: block; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--faint); padding: 6px 14px 10px; text-transform: uppercase; } }
.app-side button { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: var(--muted); font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; font-size: 0.98rem; position: relative; }
.app-side button svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.8; }
.app-side button:hover { color: var(--steel-hi); background: rgba(255,255,255,0.04); }
.app-side button.on { color: var(--steel-hi); background: linear-gradient(90deg, var(--amber-lo), transparent); box-shadow: inset 3px 0 0 var(--amber); }
.app-side .badge-n { margin-left: auto; font-family: var(--f-mono); font-size: 0.7rem; background: var(--amber); color: #15181b; padding: 1px 7px; font-weight: 700; }
.app-main { padding: clamp(22px, 4vw, 44px) var(--gutter) 60px; min-width: 0; max-width: 1100px; }
.app-main h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: 8px; }
.app-main .intro { color: var(--muted); max-width: 60ch; margin-bottom: 26px; }
.app-main h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin: 34px 0 14px; }

.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 10px; }
.kpi { padding: 18px 20px; display: flex; gap: 16px; align-items: center; text-align: left; color: inherit; }
button.kpi { cursor: pointer; width: 100%; font: inherit; }
.kpi .ring { width: 58px; height: 58px; flex: 0 0 58px; }
.kpi b { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 115; font-size: 1.15rem; line-height: 1.1; color: var(--steel-hi); }
.kpi span { font-size: 0.86rem; color: var(--muted); }
.kpi .big { font-family: var(--f-display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--steel-hi); min-width: 44px; }
.kpi .big.amber { color: var(--amber); }

.list-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 10px; flex-wrap: wrap; }
.list-item .main { flex: 1; min-width: 180px; }
.list-item .main b { display: block; }
.list-item .main .muted { font-size: 0.88rem; }
.list-item .when { font-family: var(--f-mono); font-size: 0.82rem; color: var(--steel); min-width: 74px; }
.list-item.done { opacity: 0.55; }

.exercise { padding: 20px 20px 12px; margin-bottom: 14px; }
.exercise header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.exercise h3 { margin: 0 0 4px; }
.exercise .rx { color: var(--muted); font-size: 0.9rem; }
.set, .set-head { display: grid; grid-template-columns: 34px 1fr 1fr 50px; gap: 8px; align-items: center; }
.set.vel, .set-head.vel { grid-template-columns: 34px 1fr 1fr 1fr 50px; }
.set { padding: 8px 0; border-top: 1px solid var(--edge); }
.set-head { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); text-align: center; padding-bottom: 6px; }
.set .n { font-family: var(--f-mono); font-size: 0.95rem; color: var(--steel-2); text-align: center; }
.set input { width: 100%; padding: 11px 6px; border: 0; background: #1d2125; box-shadow: inset 0 0 0 1px var(--edge-2); text-align: center; font-weight: 700; min-width: 0; }
.set input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--amber); }
.check { width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; border: 0; background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px var(--edge-2); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); transition: all 0.3s var(--ease); position: relative; }
.check svg { width: 20px; height: 20px; stroke: var(--steel-2); }
.check:hover { box-shadow: inset 0 0 0 1px var(--amber); }
.set.done .check, .check.on { background: var(--amber); box-shadow: none; }
.set.done .check svg, .check.on svg { stroke: #15181b; }
.set.done input { color: var(--amber-hi); }
.flash { position: absolute; inset: 0; background: #fff; animation: flash 0.5s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: 0.7; } to { opacity: 0; } }
.bar { height: 8px; background: #1d2125; box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 70%, #000), var(--amber-hi)); transition: width 0.8s var(--ease); }
.chart svg { width: 100%; height: auto; overflow: visible; }

.status { display: inline-block; padding: 4px 10px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.status.ok { background: rgba(91,122,95,0.2); color: var(--forest-hi); }
.status.warn { background: var(--amber-lo); color: var(--amber-hi); }
.status.bad { background: rgba(201,80,63,0.14); color: #f2a99d; }
.switch { position: relative; width: 48px; height: 26px; background: #1d2125; box-shadow: inset 0 0 0 1px var(--edge-2); border: 0; cursor: pointer; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; background: var(--steel-2); transition: transform 0.3s var(--ease), background 0.25s; }
.switch[aria-checked="true"] { box-shadow: inset 0 0 0 1px var(--amber); }
.switch[aria-checked="true"]::after { transform: translateX(22px); background: var(--amber); }
.dropzone { border: 1.5px dashed var(--edge-3); padding: 24px; text-align: center; color: var(--muted); transition: all 0.2s; }
.dropzone.over { border-color: var(--amber); background: var(--amber-lo); color: var(--steel-hi); }
.preview { max-height: 340px; overflow: auto; box-shadow: inset 0 0 0 1px var(--edge); }

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .hull.reveal, .fade { clip-path: none; opacity: 1; transform: none; }
}

/* ================= Coach (v3) ================= */
.cred-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--edge); }
.cred-strip span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); display: inline-flex; align-items: center; gap: 10px; }
.cred-strip span::before { content: ""; width: 5px; height: 5px; background: var(--amber); }
.coach-name { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-hi); margin: -6px 0 18px; }

.worked { display: grid; gap: 1px; background: var(--edge); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .worked { grid-template-columns: repeat(4, 1fr); } }
.worked div { background: var(--panel); padding: 22px 20px; }
.worked b { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 800; text-transform: uppercase; font-size: 1.02rem; line-height: 1.15; color: var(--steel-hi); margin-bottom: 6px; }
.worked span { font-size: 0.86rem; color: var(--muted); }
.worked .mono { display: block; color: var(--amber-hi); font-size: 0.66rem; margin-bottom: 10px; }

.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--amber), var(--edge-2) 30%, var(--edge)); }
.tl-item { position: relative; padding-left: 44px; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 30px; width: 13px; height: 13px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--steel-2); transform: rotate(45deg); }
.tl-item:first-child::before { box-shadow: inset 0 0 0 2px var(--amber); background: var(--amber-lo); }
.tl-card { display: grid; gap: 0; }
.tl-card.has-photo { grid-template-columns: 1fr; }
@media (min-width: 760px) { .tl-card.has-photo { grid-template-columns: 1.25fr 1fr; } }
.tl-card .txt { padding: clamp(20px, 3vw, 30px); }
.tl-card .when { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-hi); }
.tl-card h3 { margin: 8px 0 4px; }
.tl-card .role { color: var(--steel); font-weight: 600; margin-bottom: 12px; }
.tl-card p { color: var(--muted); margin: 0; }
.tl-card .hud { min-height: 220px; clip-path: none; }

.pull { position: relative; padding: clamp(26px, 4vw, 40px); }
.pull blockquote { margin: 0; font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.25; color: var(--steel-hi); text-transform: none; }
.pull blockquote::before { content: ""; display: block; width: 34px; height: 4px; background: var(--amber); margin-bottom: 20px; }
.pull cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 240px; } .gallery .g-big { grid-row: span 2; } }
.gallery figure { margin: 0; position: relative; }
.gallery .hud { height: 100%; min-height: 200px; }
.gallery .g-big .hud { min-height: 300px; }

.portrait-photo { aspect-ratio: 4 / 5; }
.about-hero .hud.portrait-photo img { object-position: 50% 30%; }

/* ================= v4: photo-led sections ================= */
.tint-green { background: linear-gradient(180deg, transparent, rgba(79,122,92,0.10) 30%, rgba(79,122,92,0.10) 70%, transparent); }
.label.green::before { background: var(--forest-hi); box-shadow: 0 0 10px rgba(148,195,160,0.6); }

.hero-portrait { aspect-ratio: 4 / 5; width: 100%; max-height: 640px; }
@media (max-width: 979px) { .hero-portrait { aspect-ratio: 4 / 4.2; } }
.hero-portrait img { object-position: 30% 22%; }

.filmstrip { position: relative; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.filmstrip .track { display: flex; gap: 14px; width: max-content; animation: strip 60s linear infinite; }
.filmstrip:hover .track { animation-play-state: paused; }
.filmstrip .hud { width: clamp(220px, 26vw, 340px); aspect-ratio: 4 / 3; flex: 0 0 auto; }
.filmstrip .hud img { transform: none; }
@keyframes strip { to { transform: translateX(-50%); } }

.quote-band { position: relative; overflow: hidden; min-height: 440px; display: grid; align-items: end; }
.quote-band .bg { position: absolute; inset: 0; }
.quote-band .bg img { position: absolute; right: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: translateY(var(--py, 0px)) scale(1.1); }
@media (min-width: 860px) { .quote-band .bg img { width: 62%; } }
.quote-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,36,38,0.92), rgba(30,36,38,0.4) 60%, rgba(30,36,38,0.1)); }
@media (min-width: 860px) { .quote-band .bg::after { background: linear-gradient(90deg, #262e2c 38%, rgba(38,46,44,0.55) 55%, rgba(38,46,44,0) 75%); } }
.quote-band .bg { background: #262e2c; }
.quote-band .inner { position: relative; z-index: 1; padding: clamp(30px, 6vw, 64px); max-width: 680px; }
.quote-band blockquote { margin: 0; font-family: var(--f-display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2; color: #fff; }
.quote-band blockquote::before { content: ""; display: block; width: 40px; height: 4px; background: var(--amber); margin-bottom: 22px; }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }

.lead-quote { display: grid; gap: 0; }
@media (min-width: 860px) { .lead-quote { grid-template-columns: 1fr 1.4fr; } }
.lead-quote .stat { padding: clamp(24px, 4vw, 40px); background: linear-gradient(160deg, rgba(79,122,92,0.28), rgba(79,122,92,0.06)); border-right: 1px solid var(--edge); display: flex; flex-direction: column; justify-content: center; }
.lead-quote .stat b { font-family: var(--f-display); font-variation-settings: "wdth" 115; font-weight: 800; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 0.9; color: #fff; }
.lead-quote .stat span { margin-top: 10px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-hi); }
.lead-quote .q { padding: clamp(24px, 4vw, 40px); }
.lead-quote blockquote { margin: 0 0 18px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--steel-hi); }

.split-photo { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split-photo { grid-template-columns: 1fr 1fr; gap: 48px; } }
.split-photo .hud { aspect-ratio: 4 / 3; }

.side-photo .hud { aspect-ratio: 1 / 1; }

@media (prefers-reduced-motion: reduce) { .filmstrip .track { animation: none; } }

/* ================= Photo finish: grain + fine line texture =================
   Sits over every photo so softer phone/Instagram images read as an intentional
   film look instead of blur or compression. */
:root {
  --photo-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --photo-lines: repeating-linear-gradient(0deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 3px);
}
.hud::after,
.band .bg::before,
.quote-band .bg::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: var(--photo-grain), var(--photo-lines);
  background-size: 180px 180px, auto;
  mix-blend-mode: overlay; opacity: 0.55;
}
.band .bg::before, .quote-band .bg::before { z-index: 1; }
.hud .shade { z-index: 1; }
.hud::before { z-index: 3; }
/* A touch of softness-hiding contrast on the photo itself. */
.hud img, .band .bg img, .quote-band .bg img { filter: contrast(1.04) saturate(1.04); }
.goal img { filter: brightness(0.82) contrast(1.04); }
.goal:hover img { filter: brightness(1) contrast(1.04); }

/* ================= v6: stronger type, fuller backgrounds, motion ideas ================= */
/* Brighter supporting text so words carry. */
.lede { color: #cfd5da; }
.lede strong, .muted strong, p strong { color: #fff; font-weight: 700; }
.label { color: var(--steel); }
.muted { color: #bcc3c9; }

/* Emphasis word: amber, with an angled bar that draws in. */
h1 em, h2 em { font-style: normal; color: var(--amber-hi); position: relative; display: inline-block; }
h1 em::after, h2 em::after {
  content: ""; position: absolute; left: 0.02em; right: -0.04em; bottom: -0.02em; height: 0.11em;
  background: linear-gradient(90deg, var(--amber), var(--amber-hi));
  transform: skewX(-24deg) scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.15s;
  box-shadow: 0 0 18px color-mix(in srgb, var(--tone) 35%, transparent);
}
h1 em.in::after, h2 em.in::after { transform: skewX(-24deg) scaleX(1); }
h1 em.metal-text { color: transparent; }

/* Blueprint grid layered into the background. */
#scene .grid-lines {
  position: absolute; inset: 0; opacity: 0.55;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000 40%, transparent 85%);
  mask-image: radial-gradient(120% 80% at 50% 30%, #000 40%, transparent 85%);
}

/* Giant outline words that slide as you scroll. */
.has-outline { position: relative; overflow: hidden; }
.outline-word {
  position: absolute; left: 0; top: 50%; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase;
  font-size: clamp(6rem, 17vw, 15rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.1);
  transform: translate3d(var(--ox, 0px), -50%, 0);
}
.outline-word.amber { -webkit-text-stroke-color: color-mix(in srgb, var(--tone) 22%, transparent); }
.outline-word.green { -webkit-text-stroke-color: rgba(148,195,160,0.2); }
.has-outline > .wrap { position: relative; z-index: 1; }

/* Ticker band under the hero. */
.ticker { position: relative; overflow: hidden; padding: 18px 0; border-top: 1px solid var(--edge-2); border-bottom: 1px solid var(--edge-2);
  background: linear-gradient(180deg, rgba(42,48,54,0.85), rgba(34,39,44,0.85)); }
.ticker::before, .ticker::after { content: ""; position: absolute; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 8px, transparent 8px 16px); opacity: 0.55; }
.ticker::before { top: 0; } .ticker::after { bottom: 0; }
.ticker .track { display: flex; align-items: center; gap: 34px; width: max-content; animation: strip 38s linear infinite; }
.ticker span { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.6rem); text-transform: uppercase; color: var(--steel-hi); white-space: nowrap; }
.ticker span.o { color: transparent; -webkit-text-stroke: 1px var(--steel-2); }
.ticker i { width: 10px; height: 10px; background: var(--amber); transform: rotate(45deg); flex: 0 0 10px; }
.ticker i.g { background: var(--forest-hi); }

/* Rotating seal on the hero photo. */
.hero-media { position: relative; }
.seal { position: absolute; z-index: 4; left: -34px; bottom: -34px; width: 132px; height: 132px; }
.seal .ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.seal .core { position: absolute; inset: 30px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #3c444c, #22272c); border-radius: 50%; box-shadow: 0 0 0 1px var(--edge-3), 0 12px 30px rgba(0,0,0,0.5); }
.seal .core svg { width: 44px; height: 44px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 979px) { .seal { left: auto; right: 10px; bottom: -40px; width: 110px; height: 110px; } .seal .core { inset: 26px; } }

.hero .hero-photo img { object-position: 62% 35%; }

@media (prefers-reduced-motion: reduce) {
  .ticker .track, .seal .ring { animation: none; }
  h1 em::after, h2 em::after { transform: skewX(-24deg) scaleX(1); }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* =====================================================================
   v7: "Chalk & Iron"
   Rubber gym-floor background, chalk dust, chalk-drawn emphasis, barbell
   knurling, and an accent tone that shifts to match the photos nearby.
   ===================================================================== */
:root {
  --tone: #4a7fd4; --tone-2: #2fa596;
  --chalk: #f3f1ea;
  --bg: #1c1f22; --panel: #25292d; --panel-2: #2d3236;
  --r: 8px;
  transition: --tone 1.4s ease, --tone-2 1.4s ease;
  --photo-lines: linear-gradient(transparent, transparent);
}
body { background: var(--bg); }
h1, h2, h3, h4 { color: var(--chalk); }
.metal-text { background: linear-gradient(180deg, #ffffff, #e9e6dc 55%, #bdb9ad); -webkit-background-clip: text; background-clip: text; }

/* ---- Scene: rubber floor + chalk light ---- */
#scene .light {
  background:
    radial-gradient(55% 45% at 85% -5%, color-mix(in srgb, var(--tone) 26%, transparent), transparent 70%),
    radial-gradient(50% 45% at 0% 70%, color-mix(in srgb, var(--tone-2) 18%, transparent), transparent 70%),
    radial-gradient(40% 35% at 50% 40%, rgba(243,241,234,0.035), transparent 70%),
    linear-gradient(180deg, #23272b 0%, #1d2023 60%, #1a1d20 100%);
}
#scene .hull { background-size: 340px 340px; opacity: 1; height: 300vh; }
#scene .grid-lines, #scene .brushed { display: none; }
#scene .chalk {
  position: absolute; left: 0; right: 0; top: 0; height: 260vh; pointer-events: none; mix-blend-mode: screen; will-change: transform;
  background:
    radial-gradient(18% 9% at 12% 14%, rgba(243,241,234,0.05), transparent 70%),
    radial-gradient(14% 7% at 88% 32%, rgba(243,241,234,0.045), transparent 70%),
    radial-gradient(22% 8% at 30% 58%, rgba(243,241,234,0.035), transparent 70%),
    radial-gradient(16% 7% at 76% 80%, rgba(243,241,234,0.045), transparent 70%),
    radial-gradient(20% 9% at 8% 95%, rgba(243,241,234,0.04), transparent 70%);
}
#scene .vignette { background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0,0,0,0.38)); }

/* ---- Panels: clean, rounded, slightly lifted ---- */
.hull {
  clip-path: none; border-radius: var(--r); border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.008) 40%), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 24px 48px -30px rgba(0,0,0,0.7);
}
.hull.reveal { clip-path: inset(0 0 100% 0 round var(--r)); }
.hull.reveal.in { clip-path: inset(-1px -1px -40px -1px round var(--r)); }
.plan.featured { border-color: color-mix(in srgb, var(--tone) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 16%, transparent), rgba(255,255,255,0.01) 45%), var(--panel-2); }
.plan.featured::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px; background: var(--tone); border-radius: 0 0 3px 3px; }

/* ---- Photos: no brackets, soft rounded frame, film grain only ---- */
.hud, .prog .hud { clip-path: none; border-radius: var(--r); }
.prog .hud { border-radius: var(--r) var(--r) 0 0; }
.hud::before { display: none; }
.tl-card .hud { border-radius: 0; }

/* ---- Controls ---- */
.btn, .btn-sm, .filter, .chips span, .input, .form select, .form textarea, .check, .menu-btn { clip-path: none; border-radius: 6px; }
.btn-amber { background: var(--chalk); color: #15181b; box-shadow: 0 10px 28px -14px rgba(243,241,234,0.45); }
.btn-amber::after { background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.7) 50%, transparent 65%); }
.btn-amber:hover { background: var(--tone); color: #fff; filter: none; box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--tone) 70%, transparent); }
.btn-ghost { box-shadow: inset 0 0 0 1px rgba(243,241,234,0.22); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--chalk); }
.filter.on { background: var(--chalk); color: #15181b; }
.label::before { width: 14px; height: 3px; border-radius: 2px; box-shadow: none; background: var(--tone); flex-basis: 14px; }
.label.green::before { background: var(--tone); box-shadow: none; }
.tag.green { color: color-mix(in srgb, var(--tone) 55%, #fff); background: color-mix(in srgb, var(--tone) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent); }
.cred-strip span::before { background: var(--tone); border-radius: 50%; }
.coach-name { color: var(--amber-hi); }
.tint-green { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tone) 9%, transparent) 30%, color-mix(in srgb, var(--tone) 9%, transparent) 70%, transparent); }

/* ---- Chalk-drawn emphasis (replaces the skewed bar) ---- */
h1 em::after, h2 em::after { display: none; }
.chalk-line { position: absolute; left: -3%; width: 106%; bottom: -0.2em; height: 0.36em; overflow: visible; pointer-events: none; }
.chalk-line path { fill: none; stroke: var(--chalk); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.9; transition: stroke-dashoffset 0.9s cubic-bezier(.6,.05,.3,1) 0.15s; }
.chalk-line path + path { opacity: 0.55; transition-delay: 0.45s; }
em.in .chalk-line path { stroke-dashoffset: 0; }

/* ---- Barbell knurling (replaces hazard tape and mechanical strips) ---- */
.knurl {
  height: 10px; width: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.45) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.45) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #9aa1a7, #d9dde0 45%, #7d858c);
  opacity: 0.32;
}
.ticker { background: rgba(28,31,34,0.75); border: 0; padding: 20px 0; }
.ticker::before, .ticker::after {
  height: 8px; opacity: 0.3;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.5) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.5) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #9aa1a7, #d9dde0 45%, #7d858c);
}
.ticker span { color: var(--chalk); }
.ticker span.o { -webkit-text-stroke-color: color-mix(in srgb, var(--chalk) 55%, transparent); }
.ticker i, .ticker i.g { width: 8px; height: 8px; border-radius: 50%; transform: none; background: var(--tone); }
.site-footer .greeble { display: none; }

/* ---- Outline words in chalk ---- */
.outline-word { -webkit-text-stroke: 1.5px rgba(243,241,234,0.09); }
.outline-word.amber, .outline-word.green { -webkit-text-stroke-color: color-mix(in srgb, var(--tone) 30%, transparent); }

/* ---- Tone-aware pieces ---- */
.lead-quote .stat { background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 30%, transparent), color-mix(in srgb, var(--tone) 6%, transparent)); }
.lead-quote .stat span { color: color-mix(in srgb, var(--tone) 50%, #fff); }
.quote-band .bg { background: color-mix(in srgb, var(--tone) 10%, #1d2023); }
@media (min-width: 860px) { .quote-band .bg::after { background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 10%, #1d2023) 38%, color-mix(in srgb, var(--tone) 6%, rgba(29,32,35,0.5)) 55%, transparent 75%); } }
.band .bg::after { background: linear-gradient(90deg, rgba(28,31,34,0.95) 32%, color-mix(in srgb, var(--tone) 22%, rgba(28,31,34,0.45))); }
.worked div { background: var(--panel); }
.worked .mono { color: var(--amber-hi); }
.seal .core { background: radial-gradient(circle at 35% 30%, #3a3f44, #222629); }
.timeline::before { background: linear-gradient(180deg, var(--tone), rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.06)); }
.app-side button.on { background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 18%, transparent), transparent); box-shadow: inset 3px 0 0 var(--tone); }
.btn { overflow: hidden; isolation: isolate; }

/* ================= TB3 logo ================= */
.logo-mark { display: inline-block; position: relative; height: 38px; aspect-ratio: 929 / 487; flex: 0 0 auto; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; inset: 0; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.logo-mark::before { background: var(--chalk); -webkit-mask-image: url("../assets/logo/tb3-mark-letters.png"); mask-image: url("../assets/logo/tb3-mark-letters.png"); }
.logo-mark::after { background: var(--tone); -webkit-mask-image: url("../assets/logo/tb3-mark-cube.png"); mask-image: url("../assets/logo/tb3-mark-cube.png"); }
.brand { gap: 14px; }
.brand-text { padding-left: 14px; border-left: 1px solid rgba(243,241,234,0.2); }
.brand-text span { margin: 0; font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.42em; color: var(--chalk); }
.brand:hover .logo-mark::after { background: var(--chalk); }
.footer-logo { width: 170px; height: auto; display: block; }
.seal .core .logo-mark { height: 22px; }
@media (max-width: 420px) { .brand-text { display: none; } }
