/* Sentrix program page */
.sx-wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Hero */
.sx-hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 48px; isolation: isolate; }
.sx-grid {
  position: absolute; inset: -40px -60px 0; z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 20%, #000 15%, transparent 70%);
  animation: sx-grid-drift 24s linear infinite;
}
@keyframes sx-grid-drift { to { background-position: 56px 56px, 56px 56px; } }
.sx-glow { position: absolute; z-index: -1; top: -80px; right: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 77, 0, 0.32), transparent 65%); filter: blur(20px); animation: sx-breathe 7s ease-in-out infinite; }
@keyframes sx-breathe { 50% { transform: scale(1.12) translate(-20px, 20px); opacity: 0.75; } }

.sx-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding-left: 14px; border-left: 2px solid var(--sx-brand); font: 500 11px/1 var(--sx-mono); letter-spacing: 0.28em; text-transform: uppercase; color: var(--sx-text-2); }

.sx-title {
  margin: 0; font: 600 clamp(64px, 14vw, 168px)/0.88 var(--sx-display); letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff 30%, #c9bfb3 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Kinetic letters (added by program.js) */
.sx-title .wd { display: inline-block; white-space: nowrap; }
.sx-title .ch { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(10px); animation: sx-letter 0.9s var(--sx-ease) forwards; animation-delay: calc(var(--i) * 45ms + 120ms); background: inherit; -webkit-background-clip: text; background-clip: text; }
.sx-title .sp { display: inline-block; width: 0.28em; }
@keyframes sx-letter { to { opacity: 1; transform: none; filter: none; } }

.sx-kicker { max-width: 640px; margin: 24px 0 0; font: 400 clamp(19px, 2.6vw, 26px)/1.35 var(--sx-display); color: var(--sx-text-2); }
.sx-kicker .w { display: inline-block; opacity: 0; transform: translateY(12px); animation: sx-word 0.7s var(--sx-ease) forwards; animation-delay: calc(var(--i) * 60ms + 700ms); }
@keyframes sx-word { to { opacity: 1; transform: none; } }

.sx-alloc { margin-top: 40px; display: flex; flex-direction: column; gap: 6px; }
.sx-alloc-label { font: 500 10.5px/1 var(--sx-mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--sx-text-3); }
.sx-alloc-num { font: 500 clamp(40px, 6vw, 64px)/1 var(--sx-mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--sx-text); }
.sx-alloc-num.is-bump { animation: sx-bump 0.5s var(--sx-ease); }
@keyframes sx-bump { 30% { color: var(--sx-brand-2); text-shadow: 0 0 30px rgba(255, 77, 0, 0.55); } }

/* Size picker */
.sx-buy { margin-top: 28px; }
.sx-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.sx-sizes legend { margin-bottom: 12px; padding: 0; font: 500 10.5px/1 var(--sx-mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--sx-text-3); }
.sx-size { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border: 1px solid var(--sx-line-2); border-radius: 14px; background: linear-gradient(180deg, #171717, #111); cursor: pointer; transition: border-color 0.2s, transform 0.2s var(--sx-ease), box-shadow 0.2s; }
.sx-size:hover { border-color: rgba(255, 77, 0, 0.5); transform: translateY(-2px); }
.sx-size input { position: absolute; opacity: 0; pointer-events: none; }
.sx-size-k { font: 600 24px/1 var(--sx-display); letter-spacing: -0.02em; }
.sx-size-p { font: 500 12.5px/1.2 var(--sx-mono); color: var(--sx-text-2); }
.sx-size-p del { color: var(--sx-text-3); margin-right: 4px; }
.sx-size-p ins { text-decoration: none; color: var(--sx-text); }
.sx-size:has(input:checked) { border-color: var(--sx-brand); background: linear-gradient(180deg, rgba(255, 77, 0, 0.16), rgba(255, 77, 0, 0.04)); box-shadow: 0 0 0 1px var(--sx-brand) inset, 0 18px 40px -20px rgba(255, 77, 0, 0.8); }
.sx-size:has(input:checked)::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--sx-brand); box-shadow: 0 0 10px var(--sx-brand); }
.sx-size:has(input:focus-visible) { outline: 2px solid var(--sx-brand); outline-offset: 3px; }
.sx-size.is-out { opacity: 0.4; cursor: not-allowed; }

.sx-buy .sx-cta { width: 100%; max-width: 560px; margin-top: 22px; justify-content: space-between; }
.sx-cta-t { flex: 1; text-align: left; }
.sx-cta-p { font-family: var(--sx-mono); letter-spacing: 0.02em; }
.sx-buy-note { margin: 14px 0 0; font-size: 12.5px; color: var(--sx-text-3); }

/* Marquee */
.sx-marquee { overflow: hidden; margin: 24px calc(-1 * clamp(16px, 4vw, 40px)); border-block: 1px solid var(--sx-line); background: rgba(255, 255, 255, 0.015); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sx-marquee-track { display: flex; gap: 48px; width: max-content; padding: 16px 0; animation: sx-marquee 40s linear infinite; }
.sx-marquee span { font: 500 12px/1 var(--sx-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-text-3); white-space: nowrap; }
.sx-marquee b { color: var(--sx-brand-2); font-weight: 500; margin-left: 8px; }
@keyframes sx-marquee { to { transform: translateX(-50%); } }

/* Sections */
.sx-section { padding: clamp(48px, 7vw, 88px) 0 0; }
.sx-h2 { display: flex; align-items: baseline; gap: 16px; margin: 0; font: 600 clamp(32px, 5vw, 52px)/1 var(--sx-display); letter-spacing: -0.03em; }
.sx-index { font: 500 12px/1 var(--sx-mono); letter-spacing: 0.2em; color: var(--sx-brand); }
.sx-lead { max-width: 620px; margin: 16px 0 0; color: var(--sx-text-2); font-size: 16px; }
.sx-small { margin: 18px 0 0; font-size: 12.5px; color: var(--sx-text-3); max-width: 680px; }

.sx-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 32px; }
.sx-rule { position: relative; padding: 20px; border: 1px solid var(--sx-line); border-radius: 16px; background: linear-gradient(180deg, #161616, #111); overflow: hidden; }
.sx-rule::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--sx-brand), transparent 70%); opacity: 0.6; }
.sx-rule-l { display: block; font: 500 10.5px/1 var(--sx-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sx-text-3); }
.sx-rule-v { display: block; margin-top: 14px; font: 600 26px/1.1 var(--sx-display); letter-spacing: -0.02em; }
.sx-rule-s { position: absolute; top: 16px; right: 16px; padding: 3px 7px; border-radius: 6px; font: 600 9.5px/1 var(--sx-mono); letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.06); color: var(--sx-text-3); }
.sx-rule-s.conflict { background: rgba(245, 179, 1, 0.12); color: var(--sx-warn); }

.sx-steps { counter-reset: s; list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sx-steps li { counter-increment: s; position: relative; padding: 52px 20px 22px; border: 1px solid var(--sx-line); border-radius: 16px; background: rgba(255, 255, 255, 0.015); }
.sx-steps li::before { content: "0" counter(s); position: absolute; top: 18px; left: 20px; font: 500 12px/1 var(--sx-mono); letter-spacing: 0.2em; color: var(--sx-brand); }
.sx-steps b { display: block; font: 600 20px/1.2 var(--sx-display); }
.sx-steps span { display: block; margin-top: 8px; color: var(--sx-text-2); font-size: 14px; }

.sx-prose { max-width: 720px; color: var(--sx-text-2); }
.sx-prose h2, .sx-prose h3 { font-family: var(--sx-display); color: var(--sx-text); }

/* Scroll reveal (class added by program.js; content is visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--sx-ease), transform 0.8s var(--sx-ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal] .sx-rule { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--sx-ease), transform 0.6s var(--sx-ease); transition-delay: calc(var(--i) * 60ms + 200ms); }
.js [data-reveal].is-in .sx-rule { opacity: 1; transform: none; }

/* Sticky mobile CTA */
.sx-sticky { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border: 1px solid var(--sx-line-2); border-radius: 16px; background: rgba(20, 20, 20, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 50px -12px #000; font-size: 13px; transform: translateY(140%); transition: transform 0.4s var(--sx-ease); }
.sx-sticky.is-on { transform: none; }
.sx-sticky b { font-family: var(--sx-display); }
@media (min-width: 900px) { .sx-sticky { inset: auto auto 24px 50%; width: min(560px, calc(100% - 48px)); margin-left: calc(-1 * min(280px, 50% - 24px)); } }

@media (max-width: 560px) {
  .sx-top-link { display: none; }
  .sx-sizes { grid-template-columns: repeat(2, 1fr); }
}
