/* Three Ways to Get Feniex — homepage decision section.
   Design language matches the SYNQ homepage feature: Oswald display, Inter
   body, JetBrains Mono labels, #ea3000 accent, white hairlines on black.
   Tokens are scoped to the section (not :root) like .synq-home does.
   v2: hierarchy flipped after the blind critique — the lane NAME is the
   display type, the support line is one sentence-case Inter line, the CTA
   stands alone. Scrim strengthened so copy survives every plate and every
   breakpoint.
   v3 (2026-08-23): all three plates are now the real destination pages on
   floating tilted screens in one red-lit void, shown brighter — the scrim
   opens up over the screens and pays for it with a harder fade to black
   across the bottom text zone. */

.fx-threeways {
  --tw-ink: #f4f5f7;
  --tw-accent: #ea3000;
  --tw-accent-soft: #ff4414;
  --tw-line: rgba(255, 255, 255, 0.10);
  --tw-muted: rgba(244, 245, 247, 0.60);
  --tw-inset: 28px; /* one left edge shared by the header and the lane text */
  /* A shade off pure black + a hairline, so the band reads as its own section
     against the all-black film section above it (2026-08-23, Hamza). */
  background: #0c0c0e;
  border-top: 1px solid var(--tw-line);
  color: var(--tw-ink);
  width: 100%;
  padding: 64px 0 56px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.tw-head {
  margin: 0 0 30px;
  padding: 0 var(--tw-inset);
  text-align: center;
}
.tw-title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--tw-ink);
}
/* ---- Lanes ---------------------------------------------------------- */

.tw-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--tw-line);
  border-bottom: 1px solid var(--tw-line);
}

.tw-lane {
  position: relative;
  display: block;
  height: clamp(300px, 36vh, 360px);
  overflow: hidden;
  text-decoration: none;
  color: var(--tw-ink);
  background: #000;
  isolation: isolate;
}
.tw-lane + .tw-lane { border-left: 1px solid var(--tw-line); }

/* Red hairline that grows from the left on hover — the lane's "live" tell. */
.tw-lane::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--tw-accent-soft), var(--tw-accent));
  box-shadow: 0 0 14px var(--tw-accent);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}
.tw-lane:hover::before,
.tw-lane:focus-visible::before { width: 100%; }

.tw-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  filter: saturate(1) brightness(1);
  z-index: 0;
}
.tw-lane:hover .tw-img,
.tw-lane:focus-visible .tw-img {
  transform: scale(1.045);
  filter: saturate(1.02) brightness(1.08);
}

/* The screens stay bright; the copy lives in a hard fade to black across
   the bottom so it reads over every plate at every breakpoint. */
.tw-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.65) 70%, rgba(0,0,0,0.97) 100%);
  z-index: 1;
}

.tw-num {
  position: absolute;
  top: 18px;
  left: var(--tw-inset);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--tw-muted);
  z-index: 2;
  transition: color 0.4s ease;
}
.tw-lane:hover .tw-num { color: var(--tw-accent); }

/* All three plates share one stage geometry — bias slightly high so the
   screens clear the bottom text zone at lane aspect. */
.tw-lane .tw-img { object-position: center 38%; }

.tw-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--tw-inset) 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
/* The decision itself is the biggest thing in the lane. */
.tw-name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
.tw-state {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: var(--tw-muted);
  max-width: 30ch;
}
.tw-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tw-accent);
}
/* Short red rule above the CTA — the lane's standing click affordance. */
.tw-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px;
  height: 2px;
  background: var(--tw-accent);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.tw-lane:hover .tw-cta::before,
.tw-lane:focus-visible .tw-cta::before { width: 52px; }
.tw-cta svg {
  width: 17px;
  height: 17px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.tw-lane:hover .tw-cta svg,
.tw-lane:focus-visible .tw-cta svg { transform: translateX(6px); }

.tw-lane:focus-visible {
  outline: 2px solid var(--tw-accent);
  outline-offset: -2px;
}

/* ---- Responsive ----------------------------------------------------- */

@media (max-width: 1024px) {
  .tw-lane { height: clamp(260px, 32vh, 320px); }
}

@media (max-width: 768px) {
  .fx-threeways { padding: 64px 0 48px; }
  .tw-head { margin-bottom: 28px; }
  .tw-lanes { grid-template-columns: 1fr; }
  .tw-lane { height: 52vw; min-height: 240px; max-height: 340px; }
  .tw-lane + .tw-lane { border-left: 0; border-top: 1px solid var(--tw-line); }
  .tw-lane .tw-img { object-position: center 34%; }
  /* Short lanes put type over the plate's midsection — the fade has to win. */
  .tw-scrim {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 24%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.80) 70%, rgba(0,0,0,0.97) 100%);
  }
  .tw-body { padding: 0 20px 24px; }
  .tw-num { left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-lane::before,
  .tw-img,
  .tw-cta svg { transition: none; }
  .tw-lane:hover .tw-img { transform: none; }
}
