/* TAEC: topo "A fábrica" (scroll-driven 2D assembly) */
.tf {
  --tf-navy: #071F35;
  --tf-navy-2: #073B63;
  --tf-tech: #0878C9;
  --tf-accent: #FF791A;
  --tf-light: #F5F8FA;
  --tf-ink-soft: #b9cadb;
  position: relative;
  height: 1600vh;
  background: var(--tf-navy);
  color: var(--tf-light);
  font-family: Inter, system-ui, sans-serif;
  isolation: isolate;
}
.tf *, .tf *::before, .tf *::after { box-sizing: border-box; }
.tf-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.tf-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* scrim only where the copy sits */
.tf-scrim {
  position: absolute;
  left: 0; top: 0;
  width: min(62vw, 760px);
  height: 70%;
  background: radial-gradient(120% 90% at 0% 0%, rgba(4, 15, 27, .82) 0%, rgba(4, 15, 27, .55) 45%, rgba(4, 15, 27, 0) 75%);
  pointer-events: none;
  transition: opacity .4s ease;
}
.tf-copy {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  top: clamp(110px, 21vh, 210px);
  width: min(440px, 40vw);
  pointer-events: none;
}
.tf-copy a { pointer-events: auto; }
.tf-intro, .tf-step, .tf-final {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  will-change: opacity, transform;
}
.tf-label {
  margin: 0 0 20px;
  font: 600 12px/1.4 Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tf-ink-soft);
  display: flex; align-items: center; gap: 12px;
}
.tf-label i { display: inline-block; width: 32px; height: 2px; background: var(--tf-accent); }
.tf-h1, .tf-h2 {
  margin: 0 0 20px;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 750;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
}
.tf-lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.55;
  color: #d9e4ee;
}
.tf-step-name {
  margin: 0 0 8px;
  font: 700 clamp(26px, 2.6vw, 38px)/1.1 Montserrat, sans-serif;
  letter-spacing: -.01em;
  color: #fff;
}
.tf-step-name::before {
  content: "";
  display: block;
  width: 32px; height: 3px;
  margin-bottom: 16px;
  background: var(--tf-accent);
}
.tf-step-text {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  color: #d9e4ee;
}
.tf-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 28px 0 0; }
.tf-btn {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 24px;
  background: var(--tf-accent); color: #fff !important;
  font: 600 14px/1 Inter, sans-serif; letter-spacing: .02em;
  text-decoration: none; border-radius: 2px;
  box-shadow: 0 8px 20px -8px rgba(255, 121, 26, .6);
  transition: transform .2s ease, background-color .2s ease;
}
.tf-btn:hover { transform: translateY(-2px); background: #ff8a38; }
.tf-link { color: #fff !important; font: 600 14px/1 Inter, sans-serif; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding: 6px 0; }
.tf-link:hover { border-color: var(--tf-accent); }
.tf-btn:focus-visible, .tf-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tf-hint { margin: 20px 0 0; font-size: 13px; color: var(--tf-ink-soft); }
.tf-rail {
  position: absolute;
  left: 0;
  top: calc(100% + 0px);
  width: 160px; height: 2px;
  background: rgba(255,255,255,.18);
  display: none;
}
.tf-rail span { display: block; height: 100%; width: 0; background: var(--tf-accent); }
.tf-list {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.tf-step, .tf-final { opacity: 0; }

/* the module is hoverable at the end */
.tf.is-xray .tf-svg { cursor: crosshair; }

/* ---------- mobile: own composition, scene on top, copy below ---------- */
@media (max-width: 767px) {
  .tf { height: 1400vh; }
  .tf-svg { height: 62%; top: 7%; }
  .tf-scrim {
    width: 100%; height: 42%; top: auto; bottom: 0;
    background: linear-gradient(to top, rgba(4,15,27,.96) 0%, rgba(4,15,27,.9) 70%, rgba(4,15,27,0) 100%);
  }
  .tf-copy {
    left: 20px; right: 20px; width: auto;
    top: auto; bottom: 0; height: 36%;
  }
  .tf-h1, .tf-h2 { font-size: clamp(30px, 9vw, 40px); margin-bottom: 12px; }
  .tf-label { margin-bottom: 12px; font-size: 11px; }
  .tf-lede { font-size: 15px; }
  .tf-step-name { font-size: 24px; }
  .tf-step-name::before { margin-bottom: 10px; }
  .tf-step-text { font-size: 15px; }
  .tf-actions { margin-top: 16px; }
  .tf-hint { display: none; }
}

/* ---------- reduced motion: a complete static composition, no pinning ---------- */
@media (prefers-reduced-motion: reduce) {
  .tf { height: auto; }
  .tf-stage { position: relative; height: auto; min-height: 100vh; }
  .tf-svg { position: relative; height: 70vh; }
  .tf-scrim { display: none; }
  .tf-copy { position: relative; left: auto; top: auto; width: auto; max-width: 720px; margin: 0 auto; padding: 32px 24px 48px; }
  .tf-intro, .tf-step { display: none; }
  .tf-final { position: relative; opacity: 1 !important; transform: none !important; }
  .tf-hint { display: none; }
  .tf-list {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal;
    max-width: 720px; margin: 0 auto; padding: 0 24px 64px 48px; columns: 2; color: #d9e4ee; line-height: 1.9;
  }
}

/* bright daytime sky on the road: dark ink, no scrim */
.tf-step-name, .tf-step-text { transition: color .5s ease; }
.tf.is-day .tf-scrim { opacity: 0; }
.tf.is-day .tf-step-name { color: var(--tf-navy); }
.tf.is-day .tf-step-text { color: #10283D; }
@media (max-width: 767px) {
  .tf.is-day .tf-scrim { opacity: 1; }
  .tf.is-day .tf-step-name { color: #fff; }
  .tf.is-day .tf-step-text { color: #d9e4ee; }
}

/* 3D mode: the WebGL canvas replaces the SVG once it is ready */
.tf-gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.tf.tf-3d-ready .tf-svg { display: none; }
@media (prefers-reduced-motion: reduce) { .tf-gl { position: relative; height: 70vh !important; } }

/* 3D legends anchored to the scene */
.tf-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tf:not(.tf-3d-ready) .tf-tags { display: none; }
.tf-tag { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; will-change: transform, opacity; transition: opacity .15s linear; }
.tf-tag i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--tf-accent); box-shadow: 0 0 0 4px rgba(255, 121, 26, .28); }
.tf-tag b { position: absolute; left: -.5px; bottom: 5px; width: 1px; height: 28px; background: rgba(255, 255, 255, .7); }
.tf-tag span { position: absolute; left: -14px; bottom: 33px; padding: 6px 11px 6px 10px; border-radius: 999px; white-space: nowrap; font: 600 12.5px/1.15 Inter, system-ui, sans-serif; letter-spacing: .01em; color: var(--tf-navy); background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px rgba(4, 15, 27, .28); border-left: 3px solid var(--tf-accent); }
.tf-tag--blue i { background: #8fd6ff; box-shadow: 0 0 0 4px rgba(143, 214, 255, .25), 0 0 12px rgba(143, 214, 255, .8); }
.tf-tag--blue b { background: rgba(143, 214, 255, .7); }
.tf-tag--blue span { color: #e6f6ff; background: rgba(8, 52, 98, .9); border: 1px solid rgba(143, 214, 255, .6); border-left-width: 1px; box-shadow: 0 0 18px rgba(63, 169, 245, .25); font-family: Montserrat, Inter, sans-serif; letter-spacing: .03em; }
.tf-tag--hot i { background: #ffd28a; box-shadow: 0 0 0 4px rgba(255, 190, 90, .35), 0 0 14px rgba(255, 190, 90, .9); }
@media (max-width: 767px) {
  .tf-tag span { font-size: 11px; padding: 5px 9px; bottom: 26px; }
  .tf-tag b { height: 21px; }
}

.tf-tag.is-flip span { left: auto; right: -14px; border-left-width: 0; border-right: 3px solid var(--tf-accent); }
.tf-tag--blue.is-flip span { border-right-width: 1px; }
@media (prefers-reduced-motion: reduce) { .tf-tags { display: none; } }
