/* Home page (public/index.html): the globe over a still, two doors, the comparison and the practice rows.
   Loaded after site.css and screens.css. Everything here is visible with no script: the scroll fade (js/scroll-fade.js) only adds a small drift to the floating screens. */

/* ---- hero: the rolling globe at half strength over a still of the people video ---- */
.hero.hero-two { display: block; min-height: 0; padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 60px); }
.hero.hero-two::after { display: none; }
.hero-two .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0D1424; }
.hero-two .hero-still { position: absolute; inset: 0; background: #0D1424 url(/assets/video/hero-poster.jpg) center / cover no-repeat; }
.hero-two .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 20, 36, 0.62) 0%, rgba(13, 20, 36, 0.8) 45%, rgba(13, 20, 36, 0.96) 100%); }
.hero-two .globe-layer { position: absolute; right: -9%; top: -8%; width: min(760px, 72vw); height: 640px; opacity: 0.5; pointer-events: none; }
.hero-two .globe-viz { cursor: default; }
.hero-two .hero-in { position: relative; z-index: 1; }
.hero-two h1 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1.04; margin: 0.5rem 0 1rem; }
.hero-two h1 > span { display: inline-block; }
.hero-two p.lead { margin: 0; max-width: 36em; }
@media (max-width: 640px) { .hero-two .globe-layer { right: -30%; top: 0; width: 120vw; height: 420px; } }

/* ---- the two doors ---- */
.door-cards { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 980px) { .door-cards { grid-template-columns: 1fr 1fr; } }
.door { background: var(--ink3); border: 1px solid var(--dline2); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.door-media { position: relative; height: 230px; background: #000 center / cover no-repeat; overflow: hidden; }
.door-media.m-left { background-image: url(/assets/video/hero-poster.jpg); }
.door-media.m-right { background-image: url(/assets/video/lab-poster.jpg); }
.door-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 28, 48, 1) 0%, rgba(19, 28, 48, 0.15) 55%); pointer-events: none; }
.door-media .shot { position: absolute; z-index: 2; right: 16px; bottom: -14px; height: 150px; width: auto; max-width: none; border-radius: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); transform: rotate(2deg); }
.door-media .shot.s2 { right: auto; left: 16px; height: 120px; bottom: -8px; transform: rotate(-3deg); }
html.fade-on .door-media .shot { translate: 0 var(--dy, 0px); will-change: opacity, translate; }
.door-tags { position: absolute; z-index: 3; left: 16px; top: 14px; display: flex; gap: 0.4rem; }
.dtag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.06em; text-transform: uppercase; }
.dtag.main { background: var(--accent); color: var(--accent-ink); }
.dtag.live { background: #EAF3DF; color: #2D5A0F; }
.dtag.new { background: #fff; color: var(--text); }
.door-txt { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.door-txt h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0.2rem 0 0.5rem; max-width: none; line-height: 1.1; }
.hero .door-txt p { color: #C7D1E0; margin: 0.4rem 0; }
.door-list { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.4rem; color: var(--dtext); font-size: 0.95rem; }
.door-list li { display: flex; gap: 0.55rem; align-items: baseline; }
.door-list li::before { content: ""; flex: none; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--ok); transform: translateY(0.05em); }
.door-txt .btn-row { margin-top: auto; padding-top: 1.2rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* "I want to": one click to the right place */
.who { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; align-items: center; }
.who .l { color: var(--ddim); margin-right: 0.4rem; }
.hero .who a { padding: 0.45rem 0.9rem; border: 1px solid var(--dline2); border-radius: 999px; color: var(--dtext); text-decoration: none; font-size: 0.9rem; background: rgba(255, 255, 255, 0.03); }
.hero .who a:hover { border-color: var(--accent); color: #fff; }

/* ---- one platform, two ways to use people ---- */
.two-ways { background: #fff; border: 1px solid var(--border); }
.two-ways th, .two-ways td { padding: 0.8rem 1rem; }
.two-ways th.a { background: var(--accent-soft); color: var(--accent-dark); }
.two-ways td.rowh { font-weight: 600; width: 18%; color: var(--text); }
.table-wrap.tw-flat { overflow: visible; border: 0; background: transparent; }
.table-wrap.tw-flat table { min-width: 0; }
@media (max-width: 720px) {
  .two-ways, .two-ways tbody, .two-ways tr, .two-ways th, .two-ways td { display: block; width: 100%; }
  .two-ways thead { display: none; }
  .two-ways tr { padding: 0.5rem 0 0.7rem; border-bottom: 1px solid var(--border); }
  .two-ways td { border: 0; padding: 0.25rem 1rem; }
  .two-ways td.rowh { width: 100%; padding-top: 0.5rem; }
  .two-ways td[data-l]::before { content: attr(data-l); display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); }
}

/* ---- practice formats: two rows under one heading ---- */
.rowlab { display: flex; align-items: center; gap: 0.6rem; margin: 2rem 0 0.9rem; font-weight: 600; flex-wrap: wrap; }
.rowlab:first-of-type { margin-top: 0; }
.rowlab .dtag.new { background: #1B2740; color: #fff; }
.rowlab-link { margin-top: 1rem; }

/* ---- worker section: three ways ---- */
.ways.ways-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways.ways-3 .way.expert { border: 2px solid var(--accent); background: #FFFBF0; }
@media (max-width: 1100px) { .ways.ways-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .door-media { height: 190px; } .door-media .shot { height: 110px; } .door-media .shot.s2 { height: 90px; } .door-txt { padding: 1.2rem 1.1rem 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .door-media video { display: none; } }
