/* TeamForge / Issue 01: the builders' hero.
 * Homepage-only visual layer. Shared docs and interactive demo keep their own CSS.
 * Editorial comic-poster energy: ink, bone paper, industrial orange; no neon or glows.
 * No images/third-party code are copied from reference galleries.
 */
.site-home {
  /* Scoped homepage tokens also keep locale-picker/demo chrome consistent
     when the device chooses light mode for documentation pages. */
  --bg:#0d141a;
  --panel:#16222a;
  --surface:#263741;
  --text:#f1eee5;
  --muted:#c5ceca;
  --quiet:#afbebb;
  --line:#4b606b;
  --line-strong:#7c9299;
  --accent:#ff6342;
  --accent-soft:#ffd0ae;
  --good:#b8d6bd;
  --warn:#ffbd96;
  --forge-ink:#0d141a;
  --forge-ink-2:#16222a;
  --forge-paper:#f2efe6;
  --forge-paper-2:#e6e2d8;
  --forge-ember:#ff6342;
  --forge-ember-2:#f64e32;
  --forge-line:#41515a;
  --forge-caption:#c1cbc8;
  --tfc-head:Impact,"Arial Narrow","Arial Black",system-ui,sans-serif;
  background:var(--forge-ink);
  color:var(--forge-paper);
  overflow-x:clip;
}
.site-home :is(a,button,summary):focus-visible {outline:3px solid var(--forge-ember);outline-offset:4px}
.site-home .site-nav {background:#10181e;border-bottom:1px solid #51616a;box-shadow:none}
.site-home .site-nav .wrap {width:min(calc(100% - 72px),1440px)}
.site-home .nav-inner {min-height:79px;gap:20px}
.site-home .brand {font:850 21px/1 system-ui,sans-serif;letter-spacing:-.065em;color:#faf5e9;display:inline-flex;align-items:center}
.site-home .brand::before {
  content:"TF";display:inline-flex;align-items:center;justify-content:center;
  width:33px;height:33px;margin-right:12px;background:var(--forge-ember);
  color:var(--forge-ink);font:900 14px/1 var(--tfc-head);letter-spacing:-.055em;
  transform:skew(-9deg);
}
.site-home .brand-sub {font:500 10px var(--mono);letter-spacing:0;color:#b0bdbb}
.site-home .nav-links {gap:19px;font:600 12px var(--mono)}
.site-home .nav-links a,.site-home .site-menu summary {color:#e6e9e0}
.site-home .nav-links a:hover {color:var(--forge-ember)}
.site-home .github-link {padding:11px 15px;border:1px solid #8b9697;border-radius:0}
.site-home .theme-toggle {display:none}
.site-home .site-menu-links {background:#10181e}
.site-home .preview-label {
  position:relative;z-index:5;display:inline-flex;gap:10px;align-items:center;
  padding:9px 14px;color:var(--forge-paper);border:1px solid #9aa5a3;
  font:700 11px/1.4 var(--mono);text-transform:uppercase;letter-spacing:.03em;
  margin-bottom:30px;background:#162128;
}
.site-home .preview-label::before {background:var(--forge-ember);width:8px;height:8px}
.site-home header.hero.wrap {
  position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;
  min-height:750px;padding:96px 0 96px;
  width:min(calc(100% - 72px),1440px);max-width:none;overflow:hidden;
}
.site-home header.hero::before {
  content:"01 / TEAMFORGE / REALTIME UNITY COLLABORATION";
  position:absolute;top:26px;left:0;z-index:4;
  color:#93a9a7;font:10px/1.4 var(--mono);letter-spacing:.08em;
}
.site-home header.hero::after {
  content:"";position:absolute;left:0;right:0;bottom:26px;height:1px;z-index:4;
  background:#475961;
}
.site-home .hero-grid {
  position:relative;z-index:4;display:block;width:min(66%,940px);max-width:none;
}
.site-home header.hero h1 {
  color:#f4eee2;margin:0;
  font:900 clamp(65px,6.2vw,100px)/.86 "DejaVu Sans Condensed","Arial Narrow",Impact,system-ui,sans-serif;
  letter-spacing:-.052em;text-transform:uppercase;
  overflow-wrap:anywhere;word-break:normal;text-wrap:balance;
}
.site-home header.hero h1 .gradient {
  background:none;-webkit-text-fill-color:var(--forge-ember);color:var(--forge-ember);
  -webkit-text-stroke:0;display:inline;position:relative;
}
.site-home header.hero h1 .gradient::after {content:none}
.site-home .hero-copy {
  margin:35px 0 0 2px;padding-left:21px;border-left:3px solid var(--forge-ember);
  max-width:490px;position:relative;
}
.site-home .hero .lead {
  font:500 clamp(15px,1.55vw,19px)/1.64 system-ui,sans-serif;
  color:#e0e5e0;max-width:47ch;margin-bottom:0;
}
.site-home .hero .lead strong {color:#fff;font-weight:800}
.site-home .hero .actions {gap:21px;margin-top:29px}
.site-home .btn.primary {
  border:1px solid var(--forge-ember);border-radius:0;
  background:var(--forge-ember);color:#14191c;padding:13px 20px;
  min-height:51px;box-shadow:none;font:800 12px/1.3 var(--mono);
  text-transform:uppercase;letter-spacing:.04em;
  transition:background .15s,color .15s,border-color .15s;
}
.site-home .btn.primary:hover {background:#ffd2a8;border-color:#ffd2a8;color:#14191c;transform:none;filter:none}
.site-home .hero .text-link {
  color:#f6ede1;text-transform:uppercase;
  font:700 11px/1.4 var(--mono);letter-spacing:.03em;
  border-bottom:1px solid #eae9e2;padding:11px 0;
}
.site-home .hero .text-link:hover {color:var(--forge-ember);border-color:var(--forge-ember)}
.site-home .hero-note {margin:25px 0 0;color:#a9bdb7;font:11px/1.5 var(--mono);letter-spacing:.04em;text-transform:uppercase}
/* A concise collaboration relationship — deliberately not a mock editor
 * screenshot. The oversized 3-D reactor is hidden at ALL widths. */
.site-home .tfc-stage {
  position:absolute;
  z-index:1;
  right:0;
  top:50%;
  transform:translateY(-50%);
  width:34%;
  min-height:210px;
  padding:65px 8px 50px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);
  gap:6px;
  align-items:center;
  background:transparent;
  border-top:1px solid #65737a;
  border-bottom:1px solid #65737a;
  clip-path:none;
  overflow:visible;
  pointer-events:none;
}
.site-home .tfc-stage::before {
  content:"TWO EDITORS / ONE SHARED SCENE";
  position:absolute;
  top:22px;
  left:8px;
  color:#aabcb8;
  font:700 10px/1.5 var(--mono);
  letter-spacing:.045em;
  background:none;
  transform:none;
  inset-block-end:auto;
}
.site-home .tfc-stage::after {
  content:"↔";
  position:static;
  grid-column:2;
  grid-row:1;
  align-self:center;
  justify-self:center;
  color:var(--forge-ember);
  border:0;
  clip-path:none;
  pointer-events:none;
  font:800 26px/1 var(--mono);
}
.site-home .tfc-reactor,
.site-home .tfc-scanline,
.site-home .tfc-ticker {display:none}
.site-home .tfc-scene-label,
.site-home .tfc-scene-label + .tfc-scene-label {
  position:static;
  inset:auto;
  grid-row:1;
  min-height:82px;
  width:100%;
  min-width:0;
  padding:16px 10px;
  display:flex;
  justify-content:center;
  align-items:center;
  border:1px solid #667880;
  background:#1b2931;
  color:#f4eee5;
  text-align:center;
  white-space:normal;
  overflow-wrap:break-word;
  font:750 11px/1.6 var(--mono);
  letter-spacing:0;
}
.site-home .tfc-scene-label {grid-column:1}
.site-home .tfc-scene-label + .tfc-scene-label {grid-column:3}
/* Sections: alternating print-like paper and dark proof pages. */
.site-home main>section {border:0;padding:clamp(86px,10vw,145px) 0}
.site-home .section-index {
  color:var(--forge-ember);font:800 11px/1.5 var(--mono);
  text-transform:uppercase;letter-spacing:.09em;
}
.site-home h2 {font:900 clamp(52px,6vw,102px)/.95 var(--tfc-head);text-transform:uppercase;letter-spacing:-.035em}
.site-home :is(.section-head h2,.proof-layout h2,.scope-layout h2,.contribution h2,.preview-summary h2) {
  font-size:clamp(54px,6.4vw,106px);line-height:.91;max-width:850px;
}
.site-home .section-head {grid-template-columns:1.08fr .92fr;gap:6%;align-items:end}
.site-home .section-head .section-intro {font:500 15px/1.8 system-ui,sans-serif;max-width:49ch}
.site-home #demo {
  background:var(--forge-paper);color:var(--forge-ink);
  border-top:10px solid var(--forge-ember);
}
.site-home #demo :is(h2,p.section-intro) {color:var(--forge-ink)}
.site-home #demo .section-index {color:#b73c21}
.site-home .collab-lab {
  border:2px solid #223037;border-radius:0;
  background:#18232b;box-shadow:12px 12px 0 #d1cbbf;overflow:hidden;
}
.site-home .demo-fallback {background:#18232b;color:#eaf1e9}
.site-home .demo-fallback p {color:#c6d1cd}
.site-home .demo-fallback .btn {background:#202c34;border-color:#738b91;color:#f3f4ee}
.site-home .demo-fallback .btn:hover {background:#304149}
.site-home .demo-fallback .btn.primary {background:var(--forge-ember);color:#121c24;border-color:var(--forge-ember)}
.site-home .fallback-scene {background:#152027}
.site-home .collab-lab.v4 {
  --bg:#121b23;--panel:#1d2b34;--surface:#283b46;
  --text:#eef2ea;--muted:#ced7d3;--quiet:#b3c2c3;
  --line:#4d6470;--line-strong:#8599a0;
  --accent:#ffb286;--good:#bcdec5;--warn:#ffb986;
  box-shadow:12px 12px 0 #d1cbbf;
}
.site-home #proof {background:#131e26;color:#f3efe6}
.site-home #proof :is(h2,.section-intro) {color:#e9eee9}
.site-home #proof .section-intro {font-size:15px;line-height:1.8}
.site-home #proof .text-link {color:#ffb194}
.site-home .proof-layout {grid-template-columns:.74fr 1.26fr;gap:6%}
.site-home .proof-frame {border:2px solid #819098;box-shadow:14px 14px 0 #283c47;border-radius:0;overflow:hidden}
.site-home .proof-frame video {width:100%;height:auto;border:0}
.site-home #proof figcaption {color:#cad3cf}
.site-home #proof figcaption a {color:#ffb194}
.site-home #features {background:var(--forge-paper);color:var(--forge-ink)}
.site-home #features :is(h2,p,.capabilities dt strong) {color:var(--forge-ink)}
.site-home #features .section-index {color:#b73c21}
.site-home #features .scope-layout p {color:#3d4546}
.site-home #features .text-link {color:#a73f2d}
.site-home .capabilities>div {padding:22px 0;border-top:1px solid #b8b4ab}
.site-home .capabilities dt {color:#af462f;font:800 12px/1.6 var(--mono)}
.site-home .capabilities dt strong {font:750 20px/1.4 system-ui,sans-serif;color:#17222a}
.site-home .capabilities dd {color:#444f51;font-size:14px;line-height:1.7;margin-top:10px}
.site-home #workflow {background:#f26443;color:#111b20}
.site-home #workflow :is(h2,p,.workflow-steps span) {color:#121d22}
.site-home #workflow .section-index,.site-home #workflow .text-link {color:#1c2730}
.site-home .workflow-steps li {border-top:1px solid #642c2470;padding:24px 0}
.site-home .workflow-steps li::before {color:#2b2526;font-size:15px}
.site-home .workflow-steps li strong {color:#12212a;font-weight:780}
.site-home .workflow-steps span {font-size:14px}
.site-home #contribute {background:#111b22;border-top:1px solid #6a7272}
.site-home #contribute :is(h2,p) {color:#eeeae2}
.site-home .contribution {gap:55px}
.site-home #contribute .text-link {color:#ffae89}
.site-home .site-footer {padding:68px 0 50px;background:#0b1217;border-top:1px solid #55626b}
.site-home .site-footer::before {
  content:"BUILD BEYOND THE COMMIT.";display:block;max-width:1400px;margin:0 auto 60px;
  padding:0 32px;font:900 clamp(55px,9.1vw,146px)/.89 var(--tfc-head);
  letter-spacing:-.04em;color:var(--forge-paper);
}
.site-home .footer-links a:hover {color:var(--forge-ember)}
.site-home .site-footer .machine-resources {border-color:#53626b}
.site-home .tfc-reveal {opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .45s ease}
.site-home .tfc-reveal.tfc-visible {opacity:1;transform:none}
/* Readability-first hero at tablet/mobile sizes; no absolutely
 * positioned artwork or fixed-height placeholder. */
/* In right-to-left desktop layouts the title occupies the right column.
 * Place the small relationship on the opposite side, not over its text. */
html[dir="rtl"] .site-home .tfc-stage {right:auto;left:0}
html[dir="rtl"] .site-home .hero-copy {
  border-left:0;
  border-right:3px solid var(--forge-ember);
  padding-left:0;
  padding-right:21px;
}
@media (max-width:1100px) {
  .site-home header.hero.wrap {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:24px;
    height:auto;
    min-height:0;
    padding:95px 0 55px;
  }
  .site-home .hero-grid {
    order:1;
    display:block;
    width:100%;
    max-width:790px;
  }
  .site-home header.hero h1 {font-size:clamp(57px,7vw,94px)}
  .site-home .tfc-stage,
  html[dir="rtl"] .site-home .tfc-stage {
    position:relative;
    order:2;
    inset:auto;
    right:auto;
    left:auto;
    top:auto;
    bottom:auto;
    transform:none;
    width:100%;
    min-height:0;
    padding:48px 8px 16px;
  }
  .site-home .tfc-stage::before {top:13px}
  .site-home .tfc-scene-label,
  .site-home .tfc-scene-label + .tfc-scene-label {min-height:54px}
}
@media (max-width:760px) {
  .site-home .site-nav .wrap,.site-home .wrap {width:calc(100% - 36px)}
  .site-home .nav-inner {min-height:68px}
  .site-home .brand {font-size:20px}
  .site-home .brand-sub {display:none}
  .site-home header.hero.wrap {
    width:calc(100% - 36px);
    padding:78px 0 46px;
    gap:23px;
  }
  .site-home header.hero::before {top:18px;font-size:8px}
  .site-home header.hero h1 {
    font-size:clamp(41px,10.7vw,64px);
    max-width:none;
    line-height:.9;
    letter-spacing:-.04em;
  }
  .site-home .hero-grid {max-width:none}
  .site-home .preview-label {margin-bottom:28px;font-size:10px}
  .site-home .hero-copy {max-width:440px;margin-top:25px;padding-left:15px}
  html[dir="rtl"] .site-home .hero-copy {padding-left:0;padding-right:15px}
  .site-home .hero .lead {font-size:14px;line-height:1.65}
  .site-home .hero .actions {gap:12px}
  .site-home .hero .btn.primary {min-height:48px;font-size:11px;padding:12px 15px}
  .site-home .hero-note {font-size:10px}
  /* Mobile hero usability: 80px context instead of a 340px fake editor. */
  .site-home .tfc-stage,
  html[dir="rtl"] .site-home .tfc-stage {
    padding:17px 0;
    grid-template-columns:minmax(0,1fr) 33px minmax(0,1fr);
    gap:6px;
  }
  .site-home .tfc-stage::before {
    content:"↔";
    position:static;
    grid-column:2;
    grid-row:1;
    color:var(--forge-ember);
    font:800 22px/1 var(--mono);
    text-align:center;
    letter-spacing:0;
  }
  .site-home .tfc-stage::after {content:none}
  .site-home .tfc-scene-label,
  .site-home .tfc-scene-label + .tfc-scene-label {
    min-height:0;
    padding:12px 8px;
    font:700 10px/1.45 var(--mono);
  }
  .site-home main>section {padding:56px 0}
  .site-home .section-head,
  .site-home .proof-layout,
  .site-home .scope-layout,
  .site-home .preview-summary>.wrap {grid-template-columns:1fr;gap:28px}
  .site-home :is(.section-head h2,.proof-layout h2,.scope-layout h2,.contribution h2,.preview-summary h2) {
    font-size:clamp(51px,12vw,78px);line-height:.94;
  }
  .site-home .collab-lab {box-shadow:6px 6px 0 #d1cbbf}
  .site-home .proof-frame {box-shadow:8px 8px 0 #283c47}
  .site-home .site-footer::before {font-size:clamp(49px,13vw,94px);margin-bottom:36px}
}
@media (max-width:410px) {
  .site-home header.hero.wrap {padding-top:72px}
  .site-home header.hero h1 {font-size:clamp(41px,10.6vw,47px)}
  .site-home .hero .actions {align-items:flex-start;flex-direction:column}
  .site-home .hero .btn.primary {width:auto}
  .site-home .nav-links {gap:10px}
}
@media (prefers-reduced-motion:reduce) {
  .site-home *,.site-home *::before,.site-home *::after {
    animation:none!important;transition:none!important;scroll-behavior:auto!important
  }
  .site-home .tfc-reveal {opacity:1;transform:none}
}
