
/* TechE Homepage UX Prototype V1 — layout/interaction only; existing copy untouched. */
body.teche-ux-home-v1 { --ux-header-h: 76px; --ux-journey-h:58px; --ux-purple:#6d5df6; --ux-ink:#15191f; --ux-border:rgba(17,24,39,.11); }
body.teche-ux-home-v1 > .v31-journey { display:none !important; }
body.teche-ux-home-v1 main { overflow:visible !important; }

/* Orientation: appears after the hero and remains available through the long page. */
.ux-chapter-nav { position:sticky; top:var(--ux-header-h); z-index:70; width:100vw; margin-left:calc(50% - 50vw); background:rgba(255,255,255,.92); backdrop-filter:blur(18px) saturate(1.25); -webkit-backdrop-filter:blur(18px) saturate(1.25); border-top:1px solid rgba(17,24,39,.05); border-bottom:1px solid var(--ux-border); }
.ux-chapter-nav-inner { max-width:1600px; margin:0 auto; padding:0 clamp(18px,2.1vw,34px); display:grid; grid-template-columns:repeat(6,1fr); }
.ux-chapter-tab { min-height:58px; display:flex; gap:9px; align-items:center; justify-content:center; text-decoration:none; color:#707782; border-bottom:2px solid transparent; transition:color .25s ease,border-color .25s ease,background .25s ease; font-weight:650; }
.ux-chapter-tab:hover { color:#252a30; background:rgba(17,24,39,.025); }
.ux-chapter-tab.is-active { color:#252a30; border-bottom-color:var(--ux-purple); }
.ux-tab-num { font-size:10px; letter-spacing:.08em; color:#9ba2ad; font-variant-numeric:tabular-nums; }
.ux-tab-label { font-size:13px; letter-spacing:.01em; }

/* Six perceived chapters. Content remains in its original order. */
.ux-chapter-shell { position:relative; width:100vw; margin-left:calc(50% - 50vw); scroll-margin-top:calc(var(--ux-header-h) + var(--ux-journey-h) + 10px); padding:clamp(22px,3.6vw,58px) max(20px,calc((100vw - 1760px)/2 + 20px)) clamp(42px,6vw,96px); }
.ux-chapter-content { max-width:1720px; margin:0 auto; }
.ux-chapter-problem { background:#f3f5f6; }
.ux-chapter-start { background:#fff; }
.ux-chapter-system { background:#11151b; }
.ux-chapter-scale { background:#eef1f3; }
.ux-chapter-trust { background:#0c1015; }
.ux-chapter-decide { background:#f7f8f9; }

.ux-chapter-intro { max-width:1720px; margin:0 auto clamp(20px,2.4vw,38px); display:grid; grid-template-columns:minmax(80px,.16fr) minmax(0,1fr); gap:clamp(20px,3vw,48px); align-items:end; padding:0 clamp(0px,1vw,14px); }
.ux-chapter-number { font-size:clamp(42px,5vw,84px); line-height:.88; font-weight:650; letter-spacing:-.06em; color:rgba(21,25,31,.14); }
.ux-chapter-label { font-size:11px; line-height:1; letter-spacing:.17em; text-transform:uppercase; font-weight:750; color:#747d88; margin-bottom:12px; }
.ux-chapter-section-links { display:flex; flex-wrap:wrap; gap:8px 18px; }
.ux-chapter-section-links a { color:#353c45; text-decoration:none; font-size:13px; font-weight:650; line-height:1.25; border-bottom:1px solid transparent; }
.ux-chapter-section-links a:hover { border-bottom-color:currentColor; }
.ux-chapter-system .ux-chapter-intro, .ux-chapter-trust .ux-chapter-intro { color:#fff; }
.ux-chapter-system .ux-chapter-number, .ux-chapter-trust .ux-chapter-number { color:rgba(255,255,255,.15); }
.ux-chapter-system .ux-chapter-label, .ux-chapter-trust .ux-chapter-label { color:rgba(255,255,255,.55); }
.ux-chapter-system .ux-chapter-section-links a, .ux-chapter-trust .ux-chapter-section-links a { color:rgba(255,255,255,.88); }

/* The system chapter gets one persistent visual memory cue without rewriting the sections. */
.ux-chapter-system .ux-chapter-intro { grid-template-columns:minmax(80px,.14fr) minmax(280px,.72fr) minmax(280px,.54fr); align-items:center; }
.ux-system-mini { display:flex; justify-content:flex-end; min-height:120px; }
.ux-system-mini img { width:min(390px,100%); height:auto; object-fit:contain; filter:contrast(1.04); opacity:.96; }

/* Visually bind individual sections into chapters instead of independent template islands. */
.ux-chapter-content > section { scroll-margin-top:calc(var(--ux-header-h) + var(--ux-journey-h) + 12px); margin-top:clamp(14px,1.4vw,24px) !important; transition:box-shadow .35s ease,transform .35s ease; }
.ux-chapter-content > section:first-child { margin-top:0 !important; }
.ux-chapter-system .ux-chapter-content > section,
.ux-chapter-trust .ux-chapter-content > section { background:#fff !important; border-radius:clamp(18px,1.5vw,28px) !important; overflow:hidden; box-shadow:0 1px 0 rgba(255,255,255,.04), 0 18px 50px rgba(0,0,0,.14); }
.ux-chapter-scale .ux-chapter-content > section { border-radius:clamp(18px,1.4vw,26px); overflow:hidden; }

/* Reduce the template-card feeling: preserve information while making repeated cards read as one field. */
body.teche-ux-home-v1 #home-patchwork [data-reveal-group] .border.border-gray-200,
body.teche-ux-home-v1 #home-business-gains article,
body.teche-ux-home-v1 #home-scale article { box-shadow:none !important; }
body.teche-ux-home-v1 #home-patchwork [data-reveal-group] .border.border-gray-200:hover,
body.teche-ux-home-v1 #home-business-gains article:hover,
body.teche-ux-home-v1 #home-scale article:hover { transform:translateY(-2px); border-color:rgba(109,93,246,.28) !important; background:#fff !important; }

/* Make long multi-card collections browseable instead of feeling like a wall on narrower screens. */
@media (min-width: 768px) and (max-width: 1180px) {
  body.teche-ux-home-v1 #teche-block3-v5 .b3-audience-grid,
  body.teche-ux-home-v1 #teche-block3-v5 .b3-transform-grid { display:flex !important; overflow-x:auto; scroll-snap-type:x mandatory; gap:14px; padding-bottom:10px; scrollbar-width:none; }
  body.teche-ux-home-v1 #teche-block3-v5 .b3-audience-grid::-webkit-scrollbar,
  body.teche-ux-home-v1 #teche-block3-v5 .b3-transform-grid::-webkit-scrollbar { display:none; }
  body.teche-ux-home-v1 #teche-block3-v5 article { min-width:min(360px,72vw); scroll-snap-align:start; }
}

/* Subtle focus on current section, not reveal gimmicks. */
.ux-chapter-content > section.ux-in-view { box-shadow:0 20px 60px rgba(23,28,36,.06); }
.ux-chapter-system .ux-chapter-content > section.ux-in-view,
.ux-chapter-trust .ux-chapter-content > section.ux-in-view { box-shadow:0 24px 74px rgba(0,0,0,.22); }

/* Lightweight persistent orientation HUD. */
.ux-chapter-hud { position:fixed; left:18px; bottom:20px; z-index:65; display:flex; align-items:center; gap:8px; padding:9px 12px; border:1px solid rgba(17,24,39,.10); background:rgba(255,255,255,.90); backdrop-filter:blur(14px); border-radius:999px; box-shadow:0 8px 30px rgba(17,24,39,.08); pointer-events:none; opacity:0; transform:translateY(6px); transition:.25s ease; }
body.ux-past-hero .ux-chapter-hud { opacity:1; transform:none; }
.ux-hud-num { font-size:10px; color:#8c949e; font-weight:750; }
.ux-hud-label { font-size:12px; color:#252a30; font-weight:700; }

/* Mobile: preserve all content, switch orientation UI to horizontal scroll. */
@media (max-width: 980px) {
  body.teche-ux-home-v1 { --ux-header-h:72px; }
}

@media (max-width: 767px) {
  body.teche-ux-home-v1 { --ux-header-h:72px; --ux-journey-h:50px; }
  .ux-chapter-nav { top:var(--ux-header-h); }
  .ux-chapter-nav-inner { display:flex; overflow-x:auto; padding:0 10px; scrollbar-width:none; }
  .ux-chapter-nav-inner::-webkit-scrollbar { display:none; }
  .ux-chapter-tab { min-width:92px; min-height:50px; flex:0 0 auto; }
  .ux-chapter-shell { padding:28px 0 54px; }
  .ux-chapter-intro { padding:0 20px; grid-template-columns:54px 1fr; gap:14px; align-items:center; margin-bottom:18px; }
  .ux-chapter-number { font-size:38px; }
  .ux-chapter-section-links { display:none; }
  .ux-chapter-system .ux-chapter-intro { grid-template-columns:54px 1fr; }
  .ux-system-mini { display:none; }
  .ux-chapter-content > section { border-radius:0 !important; margin-top:10px !important; }
  .ux-chapter-system .ux-chapter-content > section, .ux-chapter-trust .ux-chapter-content > section { border-radius:0 !important; box-shadow:none; }
  .ux-chapter-hud { display:none; }
}

@media (prefers-reduced-motion: reduce) {
 .ux-chapter-tab, .ux-chapter-content > section, .ux-chapter-hud { transition:none !important; }
 html { scroll-behavior:auto !important; }
}
