/* FabriX page */
.fx-hero { position: relative; background: #f3f6fb; overflow: hidden; }
.fx-hero-bg { position: absolute; inset: 0; }
.fx-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.fx-hero .wrap { position: relative; }
.fx-hero-txt { padding: 88px 0 120px; max-width: 620px; }
.fx-kicker { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--muted); }
.fx-hero h1 { font-size: 80px; letter-spacing: -0.05em; line-height: 1.05; margin-top: 6px; }
.fx-hero h1 small { font-size: 22px; color: var(--muted); font-weight: 500; margin-left: 14px; letter-spacing: -0.02em; }
.fx-lead { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin-top: 20px; line-height: 1.5; }
.fx-hero .btns { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.fx-hero .btn-ghost { background: rgba(255,255,255,.7); }
/* split hero — white bg + right visual (matches Brity Automation) */
.fx-hero.hero-split, .bw-hero.hero-split { background: var(--bg); }
.hero-split .hs-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0 88px; }
.hero-split .fx-hero-txt { padding: 0; max-width: none; }
.hero-split h1 { font-size: 60px; letter-spacing: -0.045em; line-height: 1.08; }
.hero-split .hs-img { margin: 0; border-radius: 14px; overflow: hidden; background: #eef3fb; box-shadow: 0 30px 60px -30px rgba(15,18,32,.45); }
.hero-split .hs-img img { width: 100%; height: auto; display: block; aspect-ratio: 1920/1100; object-fit: cover; }
@container site (max-width: 900px) {
  .hero-split .hs-in { grid-template-columns: 1fr; padding: 32px 0 44px; gap: 32px; }
  .hero-split h1 { font-size: 38px; }
}

.fx-what { text-align: center; max-width: 920px; margin: 0 auto; }
.fx-what .h2 { font-size: 44px; }
.fx-what-sub { font-size: 20px; font-weight: 600; color: var(--accent); margin-top: 28px; }
.fx-what-body { font-size: 17px; color: var(--muted); line-height: 1.8; margin-top: 14px; }
.fx-kw { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.fx-kw span { height: 52px; padding: 0 26px; border-radius: 999px; background: var(--surface); display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; }
.fx-kw span:nth-child(2) { background: var(--accent); color: #fff; }

.fx-vp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fx-vp > div { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.fx-vp small { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.fx-vp h4 { font-size: 19px; line-height: 1.45; letter-spacing: -0.02em; margin: 40px 0 12px; min-height: 2.9em; }
.fx-vp p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

.fx-diagram { margin: 0; padding: 32px; background: linear-gradient(180deg, #f4f8fe, #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.fx-diagram img { width: 100%; height: auto; display: block; }
.fx-whys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.fx-whys > div { padding: 28px; background: var(--surface); border-radius: var(--radius); }
.fx-whys h4 { font-size: 21px; color: var(--accent); margin-bottom: 8px; }
.fx-whys p { color: var(--muted); font-size: 15px; }
.fx-video { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; margin-top: 80px; }
.fx-video h3 { font-size: 30px; line-height: 1.45; letter-spacing: -0.035em; }
.fx-video h3 em { font-style: normal; color: var(--accent); }
.fx-video-box { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; position: relative; }
.fx-video-box button { width: 100%; height: 100%; padding: 0; display: block; position: relative; }
.fx-video-box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.fx-video-box button:hover img { transform: scale(1.03); }
.fx-video-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.fx-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.fx-play::after { content: ''; position: absolute; left: 31px; top: 25px; border-left: 20px solid var(--accent); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }

.fx-cap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.fx-cap nav { position: sticky; top: 172px; display: flex; flex-direction: column; border-top: 1px solid var(--fg); }
.fx-cap nav button { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; color: var(--muted); display: flex; gap: 14px; align-items: baseline; transition: color .2s, padding .2s; }
.fx-cap nav button small { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; }
.fx-cap nav button:hover { color: var(--fg); }
.fx-cap nav button.on { color: var(--accent); padding-left: 8px; }
.fx-cap-body { animation: aUp .4s both; }
.fx-cap-body h3 { font-size: 28px; line-height: 1.45; letter-spacing: -0.035em; margin-bottom: 28px; }
.fx-cap-body h3 em { font-style: normal; color: var(--accent); }
.fx-cap-body figure { margin: 0 0 28px; background: var(--surface); border-radius: var(--radius); padding: 24px; }
.fx-cap-body figure img { width: 100%; height: auto; display: block; }
.fx-cap-body p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 12px; }
.fx-builders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.fx-builders div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fx-builders b { display: block; font-size: 17px; color: var(--accent); margin-bottom: 8px; }
.fx-builders span { font-size: 14px; color: var(--muted); line-height: 1.65; }

.fx-res { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--surface); border-radius: var(--radius); flex-wrap: wrap; }
.fx-res span { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.fx-res b { font-size: 15px; }

.fx-ins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fx-ins a { display: flex; flex-direction: column; color: inherit; }
.fx-ins figure { margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 614/346; }
.fx-ins img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.fx-ins a:hover img { transform: scale(1.04); }
.fx-ins h4 { font-size: 17px; line-height: 1.5; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-ins a:hover h4 { color: var(--accent); }
.fx-ins p { font-size: 14px; color: var(--muted); margin: 8px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-ins .link { margin-top: auto; font-size: 14px; }
.fx-src { margin-top: 32px; font-size: 12.5px; color: var(--muted); }

@container site (max-width: 900px) {
  .fx-hero-bg img { object-position: 70% center; opacity: .55; }
  .fx-hero-txt { padding: 40px 0 64px; }
  .fx-kicker { font-size: 16px; }
  .fx-hero h1 { font-size: 48px; }
  .fx-hero h1 small { font-size: 16px; margin-left: 8px; }
  .fx-lead { font-size: 17px; }
  .fx-what { text-align: left; }
  .fx-what .h2 { font-size: 27px; }
  .fx-what-sub { font-size: 16.5px; margin-top: 20px; }
  .fx-what-body { font-size: 15px; }
  .fx-kw { justify-content: flex-start; gap: 8px; margin-top: 24px; }
  .fx-kw span { height: 42px; padding: 0 16px; font-size: 14px; }
  .fx-vp { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fx-vp > div { padding: 22px; }
  .fx-vp h4 { margin: 14px 0 8px; min-height: 0; font-size: 17px; }
  .fx-diagram { padding: 12px; }
  .fx-whys { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fx-whys > div { padding: 20px; }
  .fx-video { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 48px; }
  .fx-video h3 { font-size: 21px; }
  .fx-play { width: 56px; height: 56px; }
  .fx-play::after { left: 23px; top: 18px; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
  .fx-cap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fx-cap nav { position: static; flex-direction: row; overflow-x: auto; border: 0; gap: 8px; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
  .fx-cap nav button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
  .fx-cap nav button.on { padding-left: 16px; border-color: var(--accent); }
  .fx-cap nav button small { display: none; }
  .fx-cap-body h3 { font-size: 20px; margin-bottom: 18px; }
  .fx-cap-body figure { padding: 10px; margin-bottom: 18px; }
  .fx-cap-body p { font-size: 14.5px; }
  .fx-builders { grid-template-columns: minmax(0, 1fr); }
  .fx-res { width: 100%; }
  .fx-ins { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
